ChampSim
|
The included PIN tool champsim_tracer.cpp
can be used to generate new traces. It has been tested (April 2022) using PIN 3.22.
Download the source of PIN from Intel's website, then build it in a location of your choice.
wget https://software.intel.com/sites/landingpage/pintool/downloads/pin-3.22-98547-g7a303a835-gcc-linux.tar.gz tar zxf pin-3.22-98547-g7a303a835-gcc-linux.tar.gz cd pin-3.22-98547-g7a303a835-gcc-linux/source/tools make export PIN_ROOT=/your/path/to/pin
The provided makefile will generate obj-intel64/champsim_tracer.so
.
make $PIN_ROOT/pin -t obj-intel64/champsim_tracer.so -- <your program here>
The tracer has three options you can set:
For example, you could trace 200,000 instructions of the program ls, after skipping the first 100,000 instructions, with this command:
pin -t obj/champsim_tracer.so -o traces/ls_trace.champsim -s 100000 -t 200000 -- ls
Traces created with the champsim_tracer.so are approximately 64 bytes per instruction, but they generally compress down to less than a byte per instruction using xz compression.