mirror of
https://github.com/KastnerRG/riffa.git
synced 2025-01-30 23:02:54 +08:00
32 lines
1.3 KiB
C
Executable File
32 lines
1.3 KiB
C
Executable File
#include <evntrace.h> // For TRACE_LEVEL definitions
|
|
|
|
//
|
|
// If software tracing is defined in the sources file..
|
|
// WPP_DEFINE_CONTROL_GUID specifies the GUID used for this driver.
|
|
// *** REPLACE THE GUID WITH YOUR OWN UNIQUE ID ***
|
|
// WPP_DEFINE_BIT allows setting debug bit masks to selectively print.
|
|
// The names defined in the WPP_DEFINE_BIT call define the actual names
|
|
// that are used to control the level of tracing for the control guid
|
|
// specified.
|
|
//
|
|
// Name of the logger is RIFFA and the guid is
|
|
// {CA630800-D4D4-4457-8983-DFBBFCAC5542}
|
|
// (0xca630800, 0xd4d4, 0x4457, 0x89, 0x83, 0xdf, 0xbb, 0xfc, 0xac, 0x55, 0x42);
|
|
//
|
|
|
|
#define WPP_CHECK_FOR_NULL_STRING //to prevent exceptions due to NULL strings
|
|
|
|
#define WPP_CONTROL_GUIDS \
|
|
WPP_DEFINE_CONTROL_GUID(RiffaTraceGuid, (ca630800, D4D4, 4457,8983, DFBBFCAC5542),\
|
|
WPP_DEFINE_BIT(DBG_INIT) /* bit 0 = 0x00000001 */ \
|
|
WPP_DEFINE_BIT(DBG_PNP) /* bit 1 = 0x00000002 */ \
|
|
/* You can have up to 32 defines. If you want more than that,\
|
|
you have to provide another trace control GUID */\
|
|
)
|
|
|
|
|
|
#define WPP_LEVEL_FLAGS_LOGGER(lvl,flags) WPP_LEVEL_LOGGER(flags)
|
|
#define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_ ## flags).Level >= lvl)
|
|
|
|
|