Skip to content

Commit 1a6f98c

Browse files
committed
Cleaned up tracing compile procedure.
1 parent 91aa7a8 commit 1a6f98c

File tree

7 files changed

+10
-128
lines changed

7 files changed

+10
-128
lines changed
File renamed without changes.

pin_tracing/ImemROI/makefile

Lines changed: 0 additions & 26 deletions
This file was deleted.

pin_tracing/ImemROI/makefile.rules

Lines changed: 0 additions & 85 deletions
This file was deleted.

pin_tracing/README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,9 @@ module load gcc #or make sure you have gcc. Tested with 9.4.0 and 11.3.0
1212
1313
tar zxvf <pin.file.tar.gz>
1414
15-
export PIN_DIR=<pin_dir> # full path
15+
export PIN_ROOT=<pin_dir> # full path
1616
17-
cp -rv pin_tracing/ImemROI $PIN_DIR/source/tools
18-
19-
cd $PIN_DIR/source/tools
20-
21-
#add ImemROI to the list of clients in makefile
22-
vim makefile
23-
24-
#Compile clients. Some clients may not compile, that is OK.
25-
make -j
26-
27-
#check that clients compiled:
28-
ls -al $PIN_DIR/source/tools/ImemROI/obj-intel64/*.so
29-
make -j
17+
make
3018
```
3119

3220
There are three clients. You can run your application with multiple threads and multiple processes (ranks), but only process 0 with thread 0 will be used. *** NOTE *** make sure you gzip the trace before using gs_patterns.
@@ -55,8 +43,8 @@ For ImemROIThreadsRange, I first like to use ImemInscount to get the total numbe
5543

5644
Example:
5745
```
58-
$PIN_DIR/pin -t $PIN_DIR/source/tools/ImemROI/obj-intel64/ImemInscount.so -- ./hello
59-
$PIN_DIR/pin -t $PIN_DIR/source/tools/ImemROI/obj-intel64/ImemROIThreadsRange.so -- ./hello
60-
$PIN_DIR/pin -t $PIN_DIR/source/tools/ImemROI/obj-intel64/ImemROIThreads.so -- ./hello
46+
$PIN_ROOT/pin -t obj-intel64/ImemInscount.so -- ./hello
47+
$PIN_ROOT/pin -t obj-intel64/ImemROIThreadsRange.so -- ./hello
48+
$PIN_ROOT/pin -t obj-intel64/ImemROIThreads.so -- ./hello
6149
gzip roitrace.bin
6250
```

pin_tracing/makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONFIG_ROOT := $(PIN_ROOT)/source/tools/Config
2+
TOOL_ROOTS := ImemInscount ImemROIThreads ImemROIThreadsRange
3+
4+
include $(CONFIG_ROOT)/makefile.config
5+
include $(TOOLS_ROOT)/Config/makefile.default.rules

0 commit comments

Comments
 (0)