-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrun_pintool.sh
executable file
·49 lines (42 loc) · 1.18 KB
/
run_pintool.sh
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
#!/bin/bash
# make tests
cd programs/bfs/
# make
cd ../lock_add
make
cd ../wild_add
make
cd ../lock_fill_bucket
make
cd ../wild_fill_bucket
make
cd ../reader_writer
make
cd ../../
# enter pintool dir
cd pin-3.2-81205-gcc-linux/source/tools/MyMemTracer/
make
#run pintool
../../../pin -t obj-intel64/TraceFuncsList.so -o lock_add.trace -- ../../../../programs/lock_add/lock_add 16 30
../../../pin -t obj-intel64/TraceFuncsList.so -o wild_add.trace -- ../../../../programs/wild_add/wild_add 16 30
../../../pin -t obj-intel64/TraceFuncsList.so -o wild_fill_bucket.trace -- ../../../../programs/wild_fill_bucket/wild_fill_bucket 16 100 1000
../../../pin -t obj-intel64/TraceFuncsList.so -o lock_fill_bucket.trace -- ../../../../programs/lock_fill_bucket/lock_fill_bucket 16 100 1000
../../../pin -t obj-intel64/TraceFuncsList.so -o reader_writer.trace -- ../../../../programs/reader_writer/reader_writer 16 10000
# copy traces
cp -r *.trace ../../../../traces/
# return to main dir
cd ../../../../
# clean tests
cd programs/bfs/
#make clean
cd ../lock_add
make clean
cd ../wild_add
make clean
cd ../lock_fill_bucket
make clean
cd ../wild_fill_bucket
make clean
cd ../reader_writer
make clean
cd ../../