Hi folks,
WPP (Windows PreProcessor) is a mechanism used to log debug stuff in
kernel mode drivers in WinXP environment. Can this be used to log debug
messages for Win2000 drivers? I dont see any documentation for that.
Has anyone used this WPP stuff and let me know what their
opinion/experience is on this stuff?
Basically, I need to add some debugging in my TDI driver where the debug
messages could go to some file on disk. I am not sure if the WPP
mechanism allows that.
OR, is there any other mechanism for debug logging in kernel mode
drivers where I can send debug messages to a file on disk. I am looking
for a mechanism which will work on both Win2000 and WinXP.
Your help or suggestions are appreciated.
Thanks
Sanjay
This may be too simple. Build the 2K driver in the Xp build environ it
will probably run or again it may not. Anyway the latter Xp build environ
will complain “much” more than 2K so will probably have to fix some
warnings that are errors in the Xp environ.
MessageWPP Tracing works for Windows 2000 and later platforms. If you look in the latest DDK documentation you will find out how to make tracing work on all platforms. As for logging to a file, well, tracing doesn’t actually do that unless you start up a tracing application like Traceview or tracelog, that come in the DDK, and tell them to dump the tracing information into a file. At some point in the future, you can then use traceview or tracefmt to look at the trace information file.
–Mark
–
Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Sanjay Chadda” wrote in message news:xxxxx@ntdev…
Hi folks,
WPP (Windows PreProcessor) is a mechanism used to log debug stuff in kernel mode drivers in WinXP environment. Can this be used to log debug messages for Win2000 drivers? I dont see any documentation for that. Has anyone used this WPP stuff and let me know what their opinion/experience is on this stuff?
Basically, I need to add some debugging in my TDI driver where the debug messages could go to some file on disk. I am not sure if the WPP mechanism allows that.
OR, is there any other mechanism for debug logging in kernel mode drivers where I can send debug messages to a file on disk. I am looking for a mechanism which will work on both Win2000 and WinXP.
Your help or suggestions are appreciated.
Thanks
Sanjay
MessageFollow the src\general\tracedrv sample from the Server 2003 DDK. That works on Win2K and above.
–
-Eliyas
This posting is provided “AS IS” with no warranties, and confers no rights.
“Sanjay Chadda” wrote in message news:xxxxx@ntdev…
Hi folks,
WPP (Windows PreProcessor) is a mechanism used to log debug stuff in kernel mode drivers in WinXP environment. Can this be used to log debug messages for Win2000 drivers? I dont see any documentation for that. Has anyone used this WPP stuff and let me know what their opinion/experience is on this stuff?
Basically, I need to add some debugging in my TDI driver where the debug messages could go to some file on disk. I am not sure if the WPP mechanism allows that.
OR, is there any other mechanism for debug logging in kernel mode drivers where I can send debug messages to a file on disk. I am looking for a mechanism which will work on both Win2000 and WinXP.
Your help or suggestions are appreciated.
Thanks
Sanjay
I followed exactly the steps given here:
http://www.osr.com/ntinsider/2003/tracing.htm
But I get following build errors, I cant find any help or documentation on how to fix these errors:
Am I missing ot include any header file or somehting more to be added to the SOURCES file? your help is appreciated.
objchk_w2k_x86\i386\neofltr.tmh(21) : error C2061: syntax error : identifier ‘WppQueryLogger’
objchk_w2k_x86\i386\neofltr.tmh(21) : error C2059: syntax error : ‘;’
objchk_w2k_x86\i386\neofltr.tmh(21) : error C2059: syntax error : ‘type’
objchk_w2k_x86\i386\neofltr.tmh(152) : error C4002: too many actual parameters for macro ‘WPP_GUID_WTEXT’
objchk_w2k_x86\i386\neofltr.tmh(168) : error C4002: too many actual parameters for macro ‘WPP_GUID_STRUCT’
objchk_w2k_x86\i386\neofltr.tmh(347) : error C2065: ‘TRACE_MESSAGE_SEQUENCE’ : undeclared identifier
objchk_w2k_x86\i386\neofltr.tmh(348) : error C2065: ‘TRACE_MESSAGE_GUID’ : undeclared identifier
objchk_w2k_x86\i386\neofltr.tmh(348) : error C2065: ‘TRACE_MESSAGE_SYSTEMINFO’ : undeclared identifier
objchk_w2k_x86\i386\neofltr.tmh(348) : error C2065: ‘TRACE_MESSAGE_TIMESTAMP’ : undeclared identifier
-----Original Message-----
From: Mark Cariddi [mailto:xxxxx@osr.com]
Sent: Saturday, August 02, 2003 8:10 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: WPP question (for debug logging in TDI drivers)
WPP Tracing works for Windows 2000 and later platforms. If you look in the latest DDK documentation you will find out how to make tracing work on all platforms. As for logging to a file, well, tracing doesn’t actually do that unless you start up a tracing application like Traceview or tracelog, that come in the DDK, and tell them to dump the tracing information into a file. At some point in the future, you can then use traceview or tracefmt to look at the trace information file.
–Mark
–
Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Sanjay Chadda” < xxxxx@neoteris.com> wrote in message news:xxxxx@ntdev…
Hi folks,
WPP (Windows PreProcessor) is a mechanism used to log debug stuff in kernel mode drivers in WinXP environment. Can this be used to log debug messages for Win2000 drivers? I dont see any documentation for that. Has anyone used this WPP stuff and let me know what their opinion/experience is on this stuff?
Basically, I need to add some debugging in my TDI driver where the debug messages could go to some file on disk. I am not sure if the WPP mechanism allows that.
OR, is there any other mechanism for debug logging in kernel mode drivers where I can send debug messages to a file on disk. I am looking for a mechanism which will work on both Win2000 and WinXP.
Your help or suggestions are appreciated.
Thanks
Sanjay
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@neoteris.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
I built my driver with all the WPP changes using WinXP DDK in a ‘XP
build environment’. It built fine, generated all TMH files, etc.
but it crashed when I run on a target Win2000 machine. Is it expected?
You say that it will work on Win2000 also.
On a target WinXP machine, i can atleast boot the machine with my
modified driver loaded. I still have to use the traceview/tracelog etc…
Sanjay
-----Original Message-----
From: Mark Cariddi [mailto:xxxxx@osr.com]
Sent: Saturday, August 02, 2003 8:10 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: WPP question (for debug logging in TDI
drivers)
WPP Tracing works for Windows 2000 and later platforms. If you
look in the latest DDK documentation you will find out how to make
tracing work on all platforms. As for logging to a file, well, tracing
doesn’t actually do that unless you start up a tracing application like
Traceview or tracelog, that come in the DDK, and tell them to dump the
tracing information into a file. At some point in the future, you can
then use traceview or tracefmt to look at the trace information file.
–Mark
–
Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Sanjay Chadda” wrote in message
news:xxxxx@ntdev…
Hi folks,
WPP (Windows PreProcessor) is a mechanism used to log
debug stuff in kernel mode drivers in WinXP environment. Can this be
used to log debug messages for Win2000 drivers? I dont see any
documentation for that. Has anyone used this WPP stuff and let me know
what their opinion/experience is on this stuff?
Basically, I need to add some debugging in my TDI driver
where the debug messages could go to some file on disk. I am not sure if
the WPP mechanism allows that.
OR, is there any other mechanism for debug logging in
kernel mode drivers where I can send debug messages to a file on disk. I
am looking for a mechanism which will work on both Win2000 and WinXP.
Your help or suggestions are appreciated.
Thanks
Sanjay
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@neoteris.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com
To have WPP work on win2k, you need a different tpl file. The WPP stuff for the XP build environment uses new to XP exports and semantics which are unavailable for win2k.
Add this to your sources
RUN_WPP= $(SOURCES) -km -gen:{km-w2k.tpl}*.tmh
!if !defined(DDK_TARGET_OS) || “$(DDK_TARGET_OS)”==“Win2K”
C_DEFINES=/DTARGETING_Win2K
!else
redefine RUN_WPP for xp and later
RUN_WPP= $(SOURCES) -km
!endif
And then you must use the define TARGETING_Win2K in the appropriate spots (around WPP_CONTROL_GUIDS, WPP_CLEANUP, WPP_INIT_TRACING)
D
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Sanjay Chadda
Sent: Monday, August 04, 2003 4:30 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: WPP question (for debug logging in TDI drivers)
I built my driver with all the WPP changes using WinXP DDK in a ‘XP build environment’. It built fine, generated all TMH files, etc.
but it crashed when I run on a target Win2000 machine. Is it expected? You say that it will work on Win2000 also.
On a target WinXP machine, i can atleast boot the machine with my modified driver loaded. I still have to use the traceview/tracelog etc…
Sanjay
?
-----Original Message-----
From: Mark Cariddi [mailto:xxxxx@osr.com]
Sent: Saturday, August 02, 2003 8:10 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: WPP question (for debug logging in TDI drivers)
WPP Tracing works for Windows 2000 and later platforms.?? If you look in the latest DDK documentation you will find out how to make tracing work on all platforms.?? As for logging to a file, well, tracing doesn’t actually do that unless you start up a tracing application like Traceview or tracelog, that come in the DDK, and tell them to dump the tracing information into a file.?At some point in the future, you can then use traceview or tracefmt to look at the trace information file.
?
–Mark
–
Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Sanjay Chadda” wrote in message news:xxxxx@ntdev…
Hi folks,
WPP (Windows PreProcessor) is a mechanism used to log debug stuff in kernel mode drivers in WinXP environment. Can this be used to log debug messages for Win2000 drivers?? I dont see any documentation for that.? Has anyone used this WPP stuff and let me know what their opinion/experience is on this stuff?
Basically, I need to add some debugging?in my TDI driver where the debug messages could go to some file on disk. I am not sure if the WPP mechanism allows that.
OR, is there any other mechanism for debug logging in kernel mode drivers where I can?send debug messages to a file on disk. I am looking for a mechanism which will work on both Win2000 and WinXP.
Your help or suggestions are appreciated.
Thanks
Sanjay
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@neoteris.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