forked from cheat-engine/cheat-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.h
71 lines (54 loc) · 1.36 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* test.h
*
* Created on: May 22, 2011
* Author: erich
*/
#ifndef TEST_H_
#define TEST_H_
#include "common.h"
int testBranchPrediction(void);
extern void testBranch(void);
extern void *DebugStore;
extern int handlePerformanceCounterInterrupt(void);
typedef struct
{
DWORD BTS_BufferBaseAddress;
DWORD BTS_IndexBaseAddress;
DWORD BTS_AbsoluteMaxAddress;
DWORD BTS_InterruptThresholdAddress;
DWORD PEBS_BufferBaseAddress;
DWORD PEBS_IndexBaseAddress;
DWORD PEBS_AbsoluteMaxAddress;
DWORD PEBS_InterruptThresholdAddress;
QWORD PEBS_CounterReset;
QWORD Reserved;
DWORD Reserved2;
} __attribute__((__packed__)) DS_AREA_MANAGEMENT32,*PDS_AREA_MANAGEMENT32;
typedef struct
{
QWORD BTS_BufferBaseAddress;
QWORD BTS_IndexBaseAddress;
QWORD BTS_AbsoluteMaxAddress;
QWORD BTS_InterruptThresholdAddress;
QWORD PEBS_BufferBaseAddress;
QWORD PEBS_IndexBaseAddress;
QWORD PEBS_AbsoluteMaxAddress;
QWORD PEBS_InterruptThresholdAddress;
QWORD PEBS_CounterReset;
QWORD Reserved;
QWORD Reserved2;
} __attribute__((__packed__)) DS_AREA_MANAGEMENT64,*PDS_AREA_MANAGEMENT64;
typedef struct
{
DWORD LastBranchFrom;
DWORD LastBranchTo;
DWORD Extra;
} __attribute__((__packed__)) BTS32,*PBTS32;
typedef struct
{
QWORD LastBranchFrom;
QWORD LastBranchTo;
QWORD Extra;
} __attribute__((__packed__)) BTS64,*PBTS64;
#endif /* TEST_H_ */