-
Notifications
You must be signed in to change notification settings - Fork 1
/
tracingFuncs.h
63 lines (42 loc) · 1.84 KB
/
tracingFuncs.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
#pragma once
#include "pin.H"
#include "tracingObjects.h"
//FuncMode and IntraMode tracing functions
#if ENABLE_KEEP_STACK_PTR
void FunctionObjTrace(FunctionObj *fc, ADDRINT reg_sp);
void intraModeBlockTrace(BasicBlock *bb, ADDRINT reg_sp);
#else
void FunctionObjTrace(FunctionObj *fc);
void intraModeBlockTrace(BasicBlock *bb);
#endif
void intraMode_ret();
void funcMode_ret();
//InterProcMode tracing functions
void interModeBlockTrace(BasicBlock *bb);
//Instruction-tracing functions
#if ENABLE_INS_TRACING
void PIN_FAST_ANALYSIS_CALL singleInstruction(ADDRINT currFuncAddr);
void branchOrCall(ADDRINT currentFuncAddr,
ADDRINT targetAddr,
ADDRINT targetFuncAddr,
ADDRINT insCat);
void indirect_branchOrCall(ADDRINT currentFuncAddr,
ADDRINT targetAddr,
ADDRINT insCat);
#endif
//The main traceObject function
void traceObject_classic_roll(TracingObject<ADDRINT> *to,
GenericTraceContext *ctx, ihppNode* &treeTop,
ihppNode* &treeBottom);
void traceObject_classic_no_roll(TracingObject<ADDRINT> *to,
GenericTraceContext *ctx, ihppNode* &treeTop,
ihppNode* &treeBottom);
void traceObject_kinf_roll(TracingObject<ADDRINT> *to,
GenericTraceContext *ctx, ihppNode* &treeTop,
ihppNode* &treeBottom);
void traceObject_kinf_no_roll(TracingObject<ADDRINT> *to,
GenericTraceContext *ctx, ihppNode* &treeTop,
ihppNode* &treeBottom);
extern void (*traceObject)(TracingObject<ADDRINT> *to,
GenericTraceContext *ctx, ihppNode* &treeTop,
ihppNode* &treeBottom);