Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218665
b: refs/heads/master
c: 44e668c
h: refs/heads/master
i:
  218663: 04a4177
v: v3
  • Loading branch information
Ben Hutchings authored and Arnaldo Carvalho de Melo committed Oct 23, 2010
1 parent fb00c32 commit 419cdff
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffec516976f64b4e3e59ba1bb8a5020008cc678a
refs/heads/master: 44e668c6faa9a6c477a32788e7e88f0754c54a4e
6 changes: 3 additions & 3 deletions trunk/tools/perf/builtin-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ static struct scripting_ops *scripting_ops;

static void setup_scripting(void)
{
/* make sure PERF_EXEC_PATH is set for scripts */
perf_set_argv_exec_path(perf_exec_path());

setup_perl_scripting();
setup_python_scripting();

Expand Down Expand Up @@ -593,6 +590,9 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
suffix = REPORT_SUFFIX;
}

/* make sure PERF_EXEC_PATH is set for scripts */
perf_set_argv_exec_path(perf_exec_path());

if (!suffix && argc >= 2 && strncmp(argv[1], "-", strlen("-")) != 0) {
char *record_script_path, *report_script_path;
int live_pipe[2];
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/perl/bin/failed-syscalls-report
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift
fi
fi
perf trace $@ -s ~/libexec/perf-core/scripts/perl/failed-syscalls.pl $comm
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/failed-syscalls.pl $comm
2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/perl/bin/rw-by-file-report
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -lt 1 ] ; then
fi
comm=$1
shift
perf trace $@ -s ~/libexec/perf-core/scripts/perl/rw-by-file.pl $comm
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm



2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/perl/bin/rw-by-pid-report
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# description: system-wide r/w activity
perf trace $@ -s ~/libexec/perf-core/scripts/perl/rw-by-pid.pl
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-pid.pl



2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/perl/bin/rwtop-report
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ "$n_args" -gt 0 ] ; then
interval=$1
shift
fi
perf trace $@ -s ~/libexec/perf-core/scripts/perl/rwtop.pl $interval
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/rwtop.pl $interval



2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/perl/bin/wakeup-latency-report
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# description: system-wide min/max/avg wakeup latency
perf trace $@ -s ~/libexec/perf-core/scripts/perl/wakeup-latency.pl
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/wakeup-latency.pl



2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/perl/bin/workqueue-stats-report
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# description: workqueue stats (ins/exe/create/destroy)
perf trace $@ -s ~/libexec/perf-core/scripts/perl/workqueue-stats.pl
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/workqueue-stats.pl



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift
fi
fi
perf trace $@ -s ~/libexec/perf-core/scripts/python/failed-syscalls-by-pid.py $comm
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm
2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/python/bin/netdev-times-report
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# description: display a process of packet and processing time
# args: [tx] [rx] [dev=] [debug]

perf trace -s ~/libexec/perf-core/scripts/python/netdev-times.py $@
perf trace -s "$PERF_EXEC_PATH"/scripts/python/netdev-times.py $@
2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/python/bin/sched-migration-report
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
# description: sched migration overview
perf trace $@ -s ~/libexec/perf-core/scripts/python/sched-migration.py
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/sched-migration.py
2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/python/bin/sctop-report
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ elif [ "$n_args" -gt 0 ] ; then
interval=$1
shift
fi
perf trace $@ -s ~/libexec/perf-core/scripts/python/sctop.py $comm $interval
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/sctop.py $comm $interval
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift
fi
fi
perf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts-by-pid.py $comm
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm
2 changes: 1 addition & 1 deletion trunk/tools/perf/scripts/python/bin/syscall-counts-report
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift
fi
fi
perf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts.py $comm
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm

0 comments on commit 419cdff

Please sign in to comment.