WPP for user-mode code

Ok, this is a drivers-only group, but I’ll ask anyway.

There’s been a lot of talk lately about using WPP for tracing in a driver.
One of the benefits is the macro preprocessing that can convert your old
calls to MyFavoriteDebugPrint(Level, Msg, …) into the appropriate WMI
calls, with message text stored in the .pdb file for later extraction.

Well, this seems like a useful thing to do for my user-mode code as well.
There are enough tantalizing bits there to make it seem possible. However,
the tracewpp.exe program is poorly documented, and it’s certainly true that
not all the options are documented.

Has anyone tried using the WPP facility to help with tracing user-mode code?
In W2K? (I’m too lazy to convert 1000s of lines of code to use WMI
primitives.) If so, an tips or pointers would be appreciated.

Carl Appellof
.

There are a lot of user mode uses of this.

There are some details in the SDK on how to do this, but if u build your
user mode stuff in the DDK the steps are very simple

Remove the -km switch from sources.
Make the calls look like
WPP_INIT_TRACING(L"name"); or a NULL
And
WPP_CLEANUP();

Then have fun

If u need to do this in the IDE, add tracewpp as a pre-processor step,
and run tracepdb as a post processor step.

-----Original Message-----
From: Carl Appellof [mailto:xxxxx@nospam.veritas.com]
Sent: Wednesday, May 14, 2003 12:48 PM
To: NT Developers Interest List
Subject: [ntdev] WPP for user-mode code

Ok, this is a drivers-only group, but I’ll ask anyway.

There’s been a lot of talk lately about using WPP for tracing in a
driver.
One of the benefits is the macro preprocessing that can convert your old
calls to MyFavoriteDebugPrint(Level, Msg, …) into the appropriate WMI
calls, with message text stored in the .pdb file for later extraction.

Well, this seems like a useful thing to do for my user-mode code as
well.
There are enough tantalizing bits there to make it seem possible.
However,
the tracewpp.exe program is poorly documented, and it’s certainly true
that
not all the options are documented.

Has anyone tried using the WPP facility to help with tracing user-mode
code?
In W2K? (I’m too lazy to convert 1000s of lines of code to use WMI
primitives.) If so, an tips or pointers would be appreciated.

Carl Appellof
.


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