-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrace.h
48 lines (35 loc) · 1.7 KB
/
trace.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
Trace.h
Abstract:
Header file for the debug tracing related function definitions and macros.
Environment:
Kernel mode
--*/
#pragma once
// Define the tracing flags.
// Tracing GUIDs:
//
// Client Driver - {93D98F10-5DB5-4CB3-A57A-81CB4D73A81D}
//
// NOTE: Every driver must define a unique GUID otherwise tracing from multiple drivers
// that use the same GUID will appear.
//
// DMF - {E3F037DA-C707-4501-A08B-2F0887871477}
//
#define WPP_CONTROL_GUIDS \
WPP_DEFINE_CONTROL_GUID( \
DmfTraceGuid, (E3F037DA,C707,4501,A08B,2F0887871477), \
WPP_DEFINE_BIT(DMF_TRACE) \
) \
WPP_DEFINE_CONTROL_GUID( \
WtWacomSmartpadDmfU, (93D98F10,DEAD,BEEF,CAFE,81CB4D73A81D), \
WPP_DEFINE_BIT(MYDRIVER_ALL_INFO) \
WPP_DEFINE_BIT(TRACE_DEVICE) \
WPP_DEFINE_BIT(TRACE_CALLBACK) \
) \
#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)
// eof: Trace.h
//