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

Header for general tracing routines for HyperTrace module. More...

Go to the source code of this file.

Macros

#define xrdmsr(msr, pval)
#define xwrmsr(msr, val)
#define xcpuid(code, a, b, c, d)
#define xcpuidex(code, subleaf, a, b, c, d)

Detailed Description

Header for general tracing routines for HyperTrace module.

Author
Version
0.19
Date
2026-04-25

Macro Definition Documentation

◆ xcpuid

#define xcpuid ( code,
a,
b,
c,
d )
Value:
{ \
int CpuInfo[4] = {0}; \
CpuCpuId(CpuInfo, code); \
*a = CpuInfo[0]; \
*b = CpuInfo[1]; \
*c = CpuInfo[2]; \
*d = CpuInfo[3]; \
}
29#define xcpuid(code, a, b, c, d) \
30 { \
31 int CpuInfo[4] = {0}; \
32 CpuCpuId(CpuInfo, code); \
33 *a = CpuInfo[0]; \
34 *b = CpuInfo[1]; \
35 *c = CpuInfo[2]; \
36 *d = CpuInfo[3]; \
37 }

◆ xcpuidex

#define xcpuidex ( code,
subleaf,
a,
b,
c,
d )
Value:
{ \
int CpuInfo[4] = {0}; \
CpuCpuIdEx(CpuInfo, code, subleaf); \
*a = CpuInfo[0]; \
*b = CpuInfo[1]; \
*c = CpuInfo[2]; \
*d = CpuInfo[3]; \
}
39#define xcpuidex(code, subleaf, a, b, c, d) \
40 { \
41 int CpuInfo[4] = {0}; \
42 CpuCpuIdEx(CpuInfo, code, subleaf); \
43 *a = CpuInfo[0]; \
44 *b = CpuInfo[1]; \
45 *c = CpuInfo[2]; \
46 *d = CpuInfo[3]; \
47 }

◆ xrdmsr

#define xrdmsr ( msr,
pval )
Value:
(*(pval) = CpuReadMsr(msr))
UINT64 CpuReadMsr(ULONG MsrAddress)
Read an MSR.
Definition PlatformIntrinsics.c:213

◆ xwrmsr

#define xwrmsr ( msr,
val )
Value:
(msr, val)