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
7 shift7 shift
8 fi8 fi
9fi9fi
10perf trace $@ -s ~/libexec/perf-core/scripts/python/failed-syscalls-by-pid.py $comm10perf 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
2# description: display a process of packet and processing time2# description: display a process of packet and processing time
3# args: [tx] [rx] [dev=] [debug]3# args: [tx] [rx] [dev=] [debug]
4 4
5perf trace -s ~/libexec/perf-core/scripts/python/netdev-times.py $@5perf trace -s "$PERF_EXEC_PATH"/scripts/python/netdev-times.py $@
tools/perf/scripts/python/bin/sched-migration-report+1−1
@@ -1,3 +1,3 @@
1#!/bin/bash1#!/bin/bash
2# description: sched migration overview2# description: sched migration overview
3perf trace $@ -s ~/libexec/perf-core/scripts/python/sched-migration.py3perf 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
21 interval=$121 interval=$1
22 shift22 shift
23fi23fi
24perf trace $@ -s ~/libexec/perf-core/scripts/python/sctop.py $comm $interval24perf 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
7 shift7 shift
8 fi8 fi
9fi9fi
10perf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts-by-pid.py $comm10perf 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
7 shift7 shift
8 fi8 fi
9fi9fi
10perf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts.py $comm10perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm