| Index: tools/run-perf.sh
|
| diff --git a/tools/run-perf.sh b/tools/run-perf.sh
|
| index 24053b40fb0aa3dd64a0b8db3f25ca8fb75aa425..03123fdbb84df8829854eb07978605cc09bb7f7d 100755
|
| --- a/tools/run-perf.sh
|
| +++ b/tools/run-perf.sh
|
| @@ -13,6 +13,7 @@ SAMPLE_EVERY_N_CYCLES=10000
|
| SAMPLE_RATE_CONFIG_FILE="/proc/sys/kernel/perf_event_max_sample_rate"
|
| KERNEL_MAP_CONFIG_FILE="/proc/sys/kernel/kptr_restrict"
|
| CALL_GRAPH_METHOD="fp" # dwarf does not play nice with JITted objects.
|
| +EVENT_TYPE=${EVENT_TYPE:=cycles:u}
|
|
|
| ########## Usage
|
|
|
| @@ -46,7 +47,7 @@ fi
|
|
|
| echo "Running..."
|
| perf record -R \
|
| - -e cycles:u \
|
| + -e $EVENT_TYPE \
|
| -c $SAMPLE_EVERY_N_CYCLES \
|
| --call-graph $CALL_GRAPH_METHOD \
|
| -i $@ --perf_basic_prof
|
|
|