Added perf_event_paranoia instructions

This commit is contained in:
Emery Berger 2022-08-12 18:20:29 -04:00 committed by GitHub
parent b7e451add6
commit 3a4c4b43e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,13 @@ git clone https://github.com/antoyo/libelfin && cd libelfin && make && sudo make
git clone https://github.com/plasma-umass/coz && cd coz && cmake . && make && sudo make install && cd ..
```
To test, build the benchmark suite and run one of the benchmarks (the SQLite3 benchmark takes a while to build).
Next, you need to change the "perf_event_paranoia" level so Coz can run.
```
sudo sh -c 'echo 1 >/proc/sys/kernel/perf_event_paranoid'
```
Now you can test Coz. Build the benchmark suite and run one of the benchmarks (the SQLite3 benchmark takes a while to build).
```
sudo apt-get install libbz2-dev libsqlite3-dev
@ -57,7 +63,7 @@ cd coz/benchmarks && cmake . && make && cd ../..
coz run --- ./coz/benchmarks/toy/toy
```
Now, use the Coz viewer to see the results. This command will open up a browser tab, from which you will need to load the file `profile.coz`.
Finally, use the Coz viewer to see the results. This command will open up a browser tab, from which you will need to load the file `profile.coz`.
```
coz plot