-
Notifications
You must be signed in to change notification settings - Fork 1
/
options.h
65 lines (52 loc) · 1.27 KB
/
options.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
#pragma once
#include "pin.H"
#ifdef _WIN32
#define KCCF_LIB_FILE "ihpp.dll"
#else
#define KCCF_LIB_FILE "ihpp.so"
#endif
enum WorkingModeType { WM_FuncMode, WM_IntraMode, WM_InterProcMode };
const char * const WorkingModesString[] = { "funcMode", "intraMode", "interMode" };
class optionsClass {
public:
bool joinThreads;
bool rollLoops;
bool showkSF;
bool showkSF2;
bool showkCCF;
bool showFuncs;
bool showBlocks;
bool showCalls;
bool blocksDisasm;
bool funcsDisasm;
bool kinf;
bool xmloutput;
bool unrollRec;
bool insTracing;
std::string startFuncName;
std::string stopFuncName;
std::string tracingFuncList;
optionsClass()
{
joinThreads=false;
rollLoops=false;
showkSF=false;
showkSF2=false;
showkCCF=false;
showFuncs=false;
showBlocks=false;
showCalls=false;
blocksDisasm=false;
funcsDisasm=false;
kinf=false;
xmloutput=false;
unrollRec=false;
insTracing=false;
}
void initFromGlobalOptions();
static void showHelp();
static bool checkOptions();
static unsigned int getGlobalKVal();
static WorkingModeType getGlobalWM();
static const char *getOutfileName();
};