How do I initialize WPP software tracing in a kernel-mode driver?

You can initialize WPP tracing in a kernel-mode driver by calling the WPP_INIT_TRACING macro to initialize WPP software tracing.

To avoid errors, you should call the WPP_INIT_TRACING macro in the DriverEntry function of the driver.