The toaster sample has a very nice demo that shows how one can switch
from WPP based tracing to KdPrint base tracing, just by defining/
udefining EVENT_TRACING.
The "trick" is done in the 'sources' file by defining:
RUN_WPP=$(SOURCES)\
-km\
-func:ToasterDebugPrint(LEVEL,MSG,...)
So that specially made function, ToasterDebugPrint exists even when
WPP is enabled and serves *both* KdPrint and WPP.
But so far I based my driver's tracing on the DPF, which is a *macro*,
not a func (it is basically defining _DbgPrintF).
I could have mimicked the toaster sample by defining my own driver's
ToasterDebugPrint() function, replacing each and every DPF with it,
but it seems too tedious and somewhat dumb. Surely there is a shortcut
to reuse my DPF macro, right?
How do I let WPP know about the syntax and format of the macro DPF?
A tip regarding how to go about this would be highly appreciated.
Thanks,
Don