Set $PERF_EXEC_PATH before starting the record and report scripts, and make them use it where necessary.
Showing the changes to tools/perf/scripts/python (6 of 13 files). Show all
Unified · Split
| @@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then · 6 unmodified lines | ||
| 7 | 7 | shift |
| 8 | 8 | fi |
| 9 | 9 | fi |
| 10 | −perf trace $@ -s ~/libexec/perf-core/scripts/python/failed-syscalls-by-pid.py $comm | |
| 10 | +perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm | |
| @@ -2,4 +2,4 @@ · 1 unmodified line | ||
| 2 | 2 | # description: display a process of packet and processing time |
| 3 | 3 | # args: [tx] [rx] [dev=] [debug] |
| 4 | 4 | |
| 5 | −perf trace -s ~/libexec/perf-core/scripts/python/netdev-times.py $@ | |
| 5 | +perf trace -s "$PERF_EXEC_PATH"/scripts/python/netdev-times.py $@ | |
| @@ -1,3 +1,3 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | 2 | # description: sched migration overview |
| 3 | −perf trace $@ -s ~/libexec/perf-core/scripts/python/sched-migration.py | |
| 3 | +perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/sched-migration.py | |
| @@ -21,4 +21,4 @@ elif [ "$n_args" -gt 0 ] ; then · 20 unmodified lines | ||
| 21 | 21 | interval=$1 |
| 22 | 22 | shift |
| 23 | 23 | fi |
| 24 | −perf trace $@ -s ~/libexec/perf-core/scripts/python/sctop.py $comm $interval | |
| 24 | +perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/sctop.py $comm $interval | |
| @@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then · 6 unmodified lines | ||
| 7 | 7 | shift |
| 8 | 8 | fi |
| 9 | 9 | fi |
| 10 | −perf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts-by-pid.py $comm | |
| 10 | +perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm | |
| @@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then · 6 unmodified lines | ||
| 7 | 7 | shift |
| 8 | 8 | fi |
| 9 | 9 | fi |
| 10 | −perf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts.py $comm | |
| 10 | +perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm | |