How do I add tracing to a driver or export driver written in C++?

Use the standard procedure for adding software tracing to the driver's source code. For more information, see How do I initialize WPP software tracing in a kernel-mode driver?.