You can first update the below configuration to "y" in the spdk/CONFIG file.
# Build with debug logging. Turn off for performance testing and normal usage
And then enable the trace output like the SPDK example (spdk/examples/nvme/identify
"-t all") to display the trace.
From: SPDK [mailto:firstname.lastname@example.org] On Behalf Of Stephen Bates
Sent: Monday, January 15, 2018 7:10 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] Enabling SPDK_DEBUGLOG(SPDK_LOG_NVME
I am looking to add some more CMB support to nvme_pci.c. I'd like to include some
debug statements to help track the location of the CMB memory mapping into virtual address
space. I am having issues enabling the SPDK_DEBUGLOG macro. Can someone give me some
pointers as to how we turn this logging mechanism on?
SPDK mailing list