diff options
| author | Dave Wilson <[email protected]> | 2015-03-17 19:50:07 -0700 |
|---|---|---|
| committer | Dave Wilson <[email protected]> | 2015-03-17 19:50:07 -0700 |
| commit | 97cf5197cf5b882b2c689d8dc2b555f2edf8f418 (patch) | |
| tree | 46f3701832d70b420eb0fc0eb93261f9da45db3f /spb/SpbTestTool/sys/trace.h | |
| parent | ef1905bf1e8825bb31120dfb27e0daf3154d859a (diff) | |
Initial publish
Diffstat (limited to 'spb/SpbTestTool/sys/trace.h')
| -rw-r--r-- | spb/SpbTestTool/sys/trace.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/spb/SpbTestTool/sys/trace.h b/spb/SpbTestTool/sys/trace.h new file mode 100644 index 00000000..00601dc8 --- /dev/null +++ b/spb/SpbTestTool/sys/trace.h @@ -0,0 +1,54 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + trace.h + +Abstract: + + This module contains the trace definitions for the SPB + peripheral driver. + +Environment: + + kernel-mode only + +Revision History: + +--*/ + +#ifndef _TRACE_H_ +#define _TRACE_H_ + +extern "C" +{ +// +// Tracing Definitions: +// +// Control GUID: +// {73e3b785-f5fb-423e-94a9-56627fea9053} +// + +#define WPP_CONTROL_GUIDS \ + WPP_DEFINE_CONTROL_GUID( \ + SpbTestToolTraceGuid, \ + (73e3b785,f5fb,423e,94a9,56627fea9053), \ + WPP_DEFINE_BIT(TRACE_FLAG_WDFLOADING) \ + WPP_DEFINE_BIT(TRACE_FLAG_SPBAPI) \ + WPP_DEFINE_BIT(TRACE_FLAG_OTHER) \ + ) +} + +#define WPP_LEVEL_FLAGS_LOGGER(level,flags) WPP_LEVEL_LOGGER(flags) +#define WPP_LEVEL_FLAGS_ENABLED(level, flags) (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_ ## flags).Level >= level) + +// begin_wpp config +// FUNC FuncEntry{LEVEL=TRACE_LEVEL_VERBOSE}(FLAGS); +// FUNC FuncExit{LEVEL=TRACE_LEVEL_VERBOSE}(FLAGS); +// USEPREFIX(FuncEntry, "%!STDPREFIX! [%!FUNC!] --> entry"); +// USEPREFIX(FuncExit, "%!STDPREFIX! [%!FUNC!] <--"); +// end_wpp + +#endif _TRACE_H_ |
