HyperDbg Debugger
Loading...
Searching...
No Matches
Trace.h File Reference

WPP Tracing Definitions. More...

Go to the source code of this file.

Macros

#define WPP_CONTROL_GUIDS
 
#define TRACE_LEVEL_NONE   0
 
#define TRACE_LEVEL_FATAL   1
 
#define TRACE_LEVEL_ERROR   2
 
#define TRACE_LEVEL_WARNING   3
 
#define TRACE_LEVEL_INFORMATION   4
 
#define TRACE_LEVEL_VERBOSE   5
 
#define TRACE_LEVEL_RESERVED6   6
 
#define TRACE_LEVEL_RESERVED7   7
 
#define TRACE_LEVEL_RESERVED8   8
 
#define TRACE_LEVEL_RESERVED9   9
 
#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)
 
#define WPP_FLAG_EXP_PRE(FLAGS, HR)
 
#define WPP_FLAG_EXP_POST(FLAGS, HR)
 
#define WPP_FLAG_EXP_ENABLED(FLAGS, HR)   WPP_FLAG_ENABLED(FLAGS)
 
#define WPP_FLAG_EXP_LOGGER(FLAGS, HR)   WPP_FLAG_LOGGER(FLAGS)
 

Detailed Description

WPP Tracing Definitions.

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
0.1
Date
2020-04-11

Macro Definition Documentation

◆ TRACE_LEVEL_ERROR

#define TRACE_LEVEL_ERROR   2

◆ TRACE_LEVEL_FATAL

#define TRACE_LEVEL_FATAL   1

◆ TRACE_LEVEL_INFORMATION

#define TRACE_LEVEL_INFORMATION   4

◆ TRACE_LEVEL_NONE

#define TRACE_LEVEL_NONE   0

◆ TRACE_LEVEL_RESERVED6

#define TRACE_LEVEL_RESERVED6   6

◆ TRACE_LEVEL_RESERVED7

#define TRACE_LEVEL_RESERVED7   7

◆ TRACE_LEVEL_RESERVED8

#define TRACE_LEVEL_RESERVED8   8

◆ TRACE_LEVEL_RESERVED9

#define TRACE_LEVEL_RESERVED9   9

◆ TRACE_LEVEL_VERBOSE

#define TRACE_LEVEL_VERBOSE   5

◆ TRACE_LEVEL_WARNING

#define TRACE_LEVEL_WARNING   3

◆ WPP_CONTROL_GUIDS

#define WPP_CONTROL_GUIDS
Value:
WPP_DEFINE_CONTROL_GUID( \
HyperDbgLogger, \
(2AE39766, AE4B, 46AB, AFC4, 002DB8109721), \
WPP_DEFINE_BIT(HVFS_LOG) /* bit 0 = 0x00000001 */ \
WPP_DEFINE_BIT(HVFS_LOG_INFO) /* bit 1 = 0x00000002 */ \
WPP_DEFINE_BIT(HVFS_LOG_WARNING) /* bit 2 = 0x00000004 */ \
WPP_DEFINE_BIT(HVFS_LOG_ERROR) /* bit 3 = 0x00000008 */ \
)
19#define WPP_CONTROL_GUIDS \
20 WPP_DEFINE_CONTROL_GUID( \
21 HyperDbgLogger, \
22 (2AE39766, AE4B, 46AB, AFC4, 002DB8109721), \
23 WPP_DEFINE_BIT(HVFS_LOG) /* bit 0 = 0x00000001 */ \
24 WPP_DEFINE_BIT(HVFS_LOG_INFO) /* bit 1 = 0x00000002 */ \
25 WPP_DEFINE_BIT(HVFS_LOG_WARNING) /* bit 2 = 0x00000004 */ \
26 WPP_DEFINE_BIT(HVFS_LOG_ERROR) /* bit 3 = 0x00000008 */ \
27 )

◆ WPP_FLAG_EXP_ENABLED

#define WPP_FLAG_EXP_ENABLED ( FLAGS,
HR )   WPP_FLAG_ENABLED(FLAGS)

◆ WPP_FLAG_EXP_LOGGER

#define WPP_FLAG_EXP_LOGGER ( FLAGS,
HR )   WPP_FLAG_LOGGER(FLAGS)

◆ WPP_FLAG_EXP_POST

#define WPP_FLAG_EXP_POST ( FLAGS,
HR )
Value:
; \
} \
}
99#define WPP_FLAG_EXP_POST(FLAGS, HR) \
100 ; \
101 } \
102 }

◆ WPP_FLAG_EXP_PRE

#define WPP_FLAG_EXP_PRE ( FLAGS,
HR )
Value:
{ \
if (HR != STATUS_SUCCESS) \
{
91#define WPP_FLAG_EXP_PRE(FLAGS, HR) \
92 { \
93 if (HR != STATUS_SUCCESS) \
94 {

◆ WPP_LEVEL_FLAGS_ENABLED

#define WPP_LEVEL_FLAGS_ENABLED ( level,
flags )   (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_##flags).Level >= level)

◆ WPP_LEVEL_FLAGS_LOGGER

#define WPP_LEVEL_FLAGS_LOGGER ( level,
flags )   WPP_LEVEL_LOGGER(flags)