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


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

Didn’t drew answer this on the windbg alias earlier today? You need kernel symbols for this to work so that you can resolve nt!Kd_storport_mask and edit the value appropriately

d

– I can spell, I just can’t type.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of prvn ns
Sent: Tuesday, August 29, 2006 8:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] 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


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

To access nt!kd_storport_mask, you need the symbol for ntoskrnl

Calvin Guan (DDK MVP)
Sr. Staff Engineer
NetXtreme NTX Miniport
Broadcom Corporation, Irvine CA 92618
Connecting Everything(r)


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of prvn ns
Sent: Tuesday, August 29, 2006 8:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] 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


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hi,
Thanks for the replys. I have installed the symbols, which allowed me to edit the kernel variable Kd_storport_mask. But still StorportDebugPrint is not outputing my debug prints!!!
I set value of Kd_storport_mask to 0xF. And my call to the debug function looks like this: StorPortDebugPrint(0,“\n**********Memory Config**************\n”).

So, what could be wrong with my settings? For getting the debugPrint levels from 0 to 3, what should be the value of the mask. My understanding is 0xf will serve the purpose.

thanks
Praveen

Doron Holan wrote:
Didn’t drew answer this on the windbg alias earlier today? You need kernel symbols for this to work so that you can resolve nt!Kd_storport_mask and edit the value appropriately

d

– I can spell, I just can’t type.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of prvn ns
Sent: Tuesday, August 29, 2006 8:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] 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

________________________________________
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.