mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-18 04:13:58 +00:00
Set $PERF_EXEC_PATH before starting the record and report scripts, and make them use it where necessary. Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1286723403.2955.205.camel@localhost> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
13 lines
234 B
Bash
13 lines
234 B
Bash
#!/bin/bash
|
|
# description: r/w activity for a program, by file
|
|
# args: <comm>
|
|
if [ $# -lt 1 ] ; then
|
|
echo "usage: rw-by-file <comm>"
|
|
exit
|
|
fi
|
|
comm=$1
|
|
shift
|
|
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm
|
|
|
|
|
|
|