Using WPP Software Tracing in a Trace Provider
To use the default form of WPP software tracing in a trace provider, such as a kernel-mode driver or a user-mode application, do the following:
Define a control GUID that uniquely identifies the trace provider. The provider specifies this GUID in its definition of the WPP_CONTROL_GUIDS macro and in a related control file used by Tracelog.
Add the required WPP-related C preprocessor directives and WPP macro calls to the provider's source files, as described in Adding WPP Macros to a Trace Provider and in WPP Software Tracing Reference.
Build the driver, as described in WPP Preprocessor.
Use other tools for software tracing, such as TraceView, Tracelog, Tracefmt, and Tracepdb to configure, start, and stop tracing sessions and to display and filter trace messages. These tools are included in the Windows Driver Kit (WDK) in the \tools\tracing directory.