debug logging in TDI driver

Hi everybody,
I need to add some debug logging within my TDI driver to a log file
(prefereably) or any other logging mechanism. Is there a standard way to
do this from within a TDI driver? I was looking at some samples in NTDDK
and I used one of the sample codes in my driver, but it started
crashing. I am not sure why, maybe because of some IRQL issues. Any
suggestions are welcome on how to do this.
Thanks.

MessageUse IoWriteErrorLogEntry + KdPrint, or use this new sophisticated event logging technology by MS - IIRC it is called Windows Event Tracing.

Max

----- Original Message -----
From: Sanjay Chadda
To: Windows System Software Developers Interest List
Sent: Wednesday, July 30, 2003 1:03 AM
Subject: [ntdev] debug logging in TDI driver

Hi everybody,
I need to add some debug logging within my TDI driver to a log file (prefereably) or any other logging mechanism. Is there a standard way to do this from within a TDI driver? I was looking at some samples in NTDDK and I used one of the sample codes in my driver, but it started crashing. I am not sure why, maybe because of some IRQL issues. Any suggestions are welcome on how to do this.
Thanks.

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

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

ETW (event tracing for windows) is the acronym you would want to search on. And maybe WPP as well.

D

This posting is provided “AS IS” with no warranties, and confers no rights


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Tuesday, July 29, 2003 3:15 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: debug logging in TDI driver

Use IoWriteErrorLogEntry + KdPrint, or use this new sophisticated event logging technology by MS - IIRC it is called Windows Event Tracing.
?
??? Max
?
----- Original Message -----
From: Sanjay Chadda
To: Windows System Software Developers Interest List
Sent: Wednesday, July 30, 2003 1:03 AM
Subject: [ntdev] debug logging in TDI driver

Hi everybody,
I need to add some debug logging within my TDI driver to a log file (prefereably) or any other logging mechanism. Is there a standard way to do this from within a TDI driver? I was looking at some samples in NTDDK and I used one of the sample codes in my driver, but it started crashing. I am not sure why, maybe because of some IRQL issues. Any suggestions are welcome on how to do this.
Thanks.

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

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

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

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

If you are running on .NET, then the new Miscrosoft technology Windows Event
tracing is really good and simple to use.
Its doable w2k also but has some problems…

Check osronline.com for articles on the same and search for the mails with
“WPP” or “Without a trace” on this mailing list…

-rb
Sanjay Chadda writes:

Hi everybody,
I need to add some debug logging within my TDI driver to a log file
(prefereably) or any other logging mechanism. Is there a standard way to
do this from within a TDI driver? I was looking at some samples in NTDDK
and I used one of the sample codes in my driver, but it started
crashing. I am not sure why, maybe because of some IRQL issues. Any
suggestions are welcome on how to do this.
Thanks.


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

You are currently subscribed to ntdev as: xxxxx@softhome.net
To unsubscribe send a blank email to xxxxx@lists.osr.com