19 lines
742 B
Markdown
19 lines
742 B
Markdown
## Usage
|
|
```
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DDynamoRIO_DIR=[path to directory that contains DynamoRIOConfig.cmake]
|
|
ccmake . # Optional: configure build options
|
|
cmake --build . -j$(nproc)
|
|
```
|
|
The `dram_tracer_launcher` is an offline tool that operates on DrCacheSim trace files:
|
|
```
|
|
./dram_tracer_launcher -trace_dir [path to trace directory]
|
|
```
|
|
For online usage (needed for physical address conversion), the tool has to be integrated into the DrCacheSim source code. A DynamoRIO fork is provided.
|
|
To trace an application run the following command in the DynamoRIO build directory:
|
|
```
|
|
sudo ./drrun -t drcachesim -simulator_type dram_tracer -use_physical -- [application]
|
|
```
|
|
System privileges are needed for the physical address conversion.
|