StorPortDebugPrint

Hi All,

I am developing a simple Storport miniport for my storage device. But, now I am facing an interesting problem, that my debug prints through StorPortDebugPrint are not coming at all!!!. This started with a latest build of Vista that I installed a few days back.
The WDK documentation of StorPortDebugPrint says nt!kd_storport_mask to be set for supporting the system wide debug mechanism. My attempt to set this kernel variable through windbg didn’t succeed and I am getting an error message “-Couldn’t resolve error at ‘nt!Kd_StorPort_Mask’”. I don’t have the kernel symbols installed in my system, is that the reason for this error?
I have gone through the DbgPrintEx documentation and an the article in osr (http://www.osronline.com/article.cfm?article=295), both talk about how to set the debug filters in the registry. But interestingly that registry key itself (HKLM\SYSTEM\CCS\Control\Session Manager\Debug Print Filter) is not present in registry!!! I created the key “Debug Print Filter” under Session Manager and added the following dword values under that - IHVDRIVER, IHVBUS, and STORPORT, with mask value of 0xF. IHVDRIVER and IHVBUS are the documented values in WDK, and I have added STORPORT in the sameway thinking that it is of the same kind for enabling debug mask for storport component. This also not giving the result I am expecting.
Since I am experimenting manythings at this time with my miniport, I can’t survive without finding a solution to this problem:( Please let me know if i am doing something terribly wrong and suggest some solution.

thanks
Praveen


Do you Yahoo!?
Get on board. You’re invited to try the new Yahoo! Mail.

You need full kernel symbols in order to access the kd_ global variables
in the kernel.

You are better off using the registry. Creating the key is fine and
using STORPORT as the component name should be OK also. When you say
that changing the STORPORT component value does something different than
what you expect what exactly is it doing?


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of prvn ns
Sent: Tuesday, August 29, 2006 7:23 AM
To: Kernel Debugging Interest List
Subject: [windbg] StorPortDebugPrint

Hi All,

I am developing a simple Storport miniport for my storage device. But,
now I am facing an interesting problem, that my debug prints through
StorPortDebugPrint are not coming at all!!!. This started with a latest
build of Vista that I installed a few days back.
The WDK documentation of StorPortDebugPrint says nt!kd_storport_mask to
be set for supporting the system wide debug mechanism. My attempt to
set this kernel variable through windbg didn’t succeed and I am getting
an error message “-Couldn’t resolve error at ‘nt!Kd_StorPort_Mask’”. I
don’t have the kernel symbols installed in my system, is that the reason
for this error?
I have gone through the DbgPrintEx documentation and an the article in
osr (http://www.osronline.com/article.cfm?article=295), both talk about
how to set the debug filters in the registry. But interestingly that
registry key itself (HKLM\SYSTEM\CCS\Control\Session Manager\Debug Print
Filter) is not present in registry!!! I created the key “Debug Print
Filter” under Session Manager and added the following dword values under
that - IHVDRIVER, IHVBUS, and STORPORT, with mask value of 0xF.
IHVDRIVER and IHVBUS are the documented values in WDK, and I have added
STORPORT in the sameway thinking that it is of the same kind for
enabling debug mask for storport component. This also not giving the
result I am expecting.
Since I am experimenting manythings at this time with my miniport, I
can’t survive without finding a solution to this problem:( Please let me
know if i am doing something terribly wrong and suggest some solution.

thanks
Praveen


Do you Yahoo!?
Get on board. You’re invited
http:ailbeta> to try the new Yahoo! Mail. — You are currently subscribed
to windbg as: xxxxx@winse.microsoft.com To unsubscribe send a blank
email to xxxxx@lists.osr.com</http:>