-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
39 lines (37 loc) · 1.17 KB
/
main.cpp
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
#include <iostream>
#include "pin.H"
#include "src/read_syscall.h"
#include "src/image.h"
#include "src/instruction.h"
using namespace std;
/* ===================================================================== */
/* Main */
/* ===================================================================== */
/* argc, argv are the entire command line: pin -t <toolname> -- ... */
/* ===================================================================== */
int main(int argc, char *argv[]) {
// // init symbols table to add instrument in routines
// PIN_InitSymbols();
//
// // exit if pin init failed
// if(PIN_Init(argc,argv))
// {
// cerr << "load file " << argv[0] << "failed!" << endl;
// return -1;
// }
//
// // hook syscall
// PIN_AddSyscallEntryFunction(SyscallEntryHandler, NULL);
// PIN_AddSyscallExitFunction(SyscallExitHandler,NULL);
//
// // add image instrument
// IMG_AddInstrumentFunction(Image, NULL);
//
// // add instruction instrument
// INS_AddInstrumentFunction(Instruction, NULL);
//
// // start program
// PIN_StartProgram();
//
// return 0;
}