History

perf trace: Use $PERF_EXEC_PATH in canned report scripts

Set $PERF_EXEC_PATH before starting the record and report scripts, and make them use it where necessary.

Ben Hutchings committed 16 years ago

Commit 44e668c1 parent ffec51613 files · +15 −15Browse files

Showing the changes to tools/perf/scripts/python (6 of 13 files). Show all

Unified · Split

6 files
  1. tools/perf/scripts/python/bin/failed-syscalls-by-pid-report +1 −1
  2. tools/perf/scripts/python/bin/netdev-times-report +1 −1
  3. tools/perf/scripts/python/bin/sched-migration-report +1 −1
  4. tools/perf/scripts/python/bin/sctop-report +1 −1
  5. tools/perf/scripts/python/bin/syscall-counts-by-pid-report +1 −1
  6. tools/perf/scripts/python/bin/syscall-counts-report +1 −1
tools/perf/scripts/python/bin/failed-syscalls-by-pid-report+1−1
@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then · 6 unmodified lines
77 shift
88 fi
99 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
tools/perf/scripts/python/bin/netdev-times-report+1−1
@@ -2,4 +2,4 @@ · 1 unmodified line
22 # description: display a process of packet and processing time
33 # args: [tx] [rx] [dev=] [debug]
44
5−perf trace -s ~/libexec/perf-core/scripts/python/netdev-times.py $@
5+perf trace -s "$PERF_EXEC_PATH"/scripts/python/netdev-times.py $@
tools/perf/scripts/python/bin/sched-migration-report+1−1
@@ -1,3 +1,3 @@
11 #!/bin/bash
22 # 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
tools/perf/scripts/python/bin/sctop-report+1−1
@@ -21,4 +21,4 @@ elif [ "$n_args" -gt 0 ] ; then · 20 unmodified lines
2121 interval=$1
2222 shift
2323 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
tools/perf/scripts/python/bin/syscall-counts-by-pid-report+1−1
@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then · 6 unmodified lines
77 shift
88 fi
99 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
tools/perf/scripts/python/bin/syscall-counts-report+1−1
@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then · 6 unmodified lines
77 shift
88 fi
99 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