[nvmewin] Turning on Storportdebugprint()

Freyensee, James P james.p.freyensee at intel.com
Thu May 3 15:47:08 PDT 2012


Yes, I think I would like it enabled in the registry.  I can see kernel messages being generated in debugview.exe...I just want to see if I can see nvme.sys debug messages using the same mechanism.  Having a windbg session to validate in a simple hello_world() function that I stick in gets called seems like an overkill.

Thanks!

From: Robles, Raymond C
Sent: Thursday, May 03, 2012 3:22 PM
To: Freyensee, James P; nvmewin at lists.openfabrics.org
Subject: RE: Turning on Storportdebugprint()

You can enable prints within your WinDbg session by typing the following command:

ed Kd_StorMiniport_Mask 0xf

Note that the mask indicates the level of verbosity.  The verbosity is set for each print in the code by the first parameter (in your example below, INFO is the verbosity level). You can also enter a registry value for enabling prints from the Windows NVMe miniport... however, I would not recommend this if you are going to be running normal I/O as the performance will come to a crawl during reads and writes.  But there are many articles on how to do this... you'll just need to find the correct nvme.sys location in registry. Here is an OSR article on how to enable in the registry. Keep in mind if you just want the nvme.sys debug prints, you'll need to find the correct location for the nvme.sys driver in the registry.

http://www.osronline.com/article.cfm?article=295

If you want to enable it in the registry, let me know and I'll look for it on my test system.

Thanks,
Ray

From: nvmewin-bounces at lists.openfabrics.org<mailto:nvmewin-bounces at lists.openfabrics.org> [mailto:nvmewin-bounces at lists.openfabrics.org] On Behalf Of Freyensee, James P
Sent: Thursday, May 03, 2012 2:44 PM
To: nvmewin at lists.openfabrics.org<mailto:nvmewin at lists.openfabrics.org>
Subject: [nvmewin] Turning on Storportdebugprint()

Hi all,

Sorry for the elementary question, but how does one turn on print messages like:

StorPortDebugPrint(INFO,
                       "NVMeEnumNumaCores: # of NUMA node(s) = %d.\n",
                       Node + 1);

Can a function() or a #define be written/set in code?  Does it have to be compiled in a debug compile? How is this seen?  Could it be viewed in debugview.exe?

Thanks!

Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/nvmewin/attachments/20120503/a9220718/attachment.html>


More information about the nvmewin mailing list