It should be possible to run any perf trace script in 'live mode'. This requires being able to pass in e.g. '-i -' or other args, which the current shell scripts aren't equipped to handle. In a few cases, there are required or optional args that also need special handling. This patch makes changes the current set of shell scripts as necessary. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: fweisbec@gmail.com Cc: rostedt@goodmis.org Cc: k-keiichi@bx.jp.nec.com Cc: acme@ghostprotocols.net LKML-Reference: <1270184365-8281-11-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
13 lines
236 B
Bash
13 lines
236 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 ~/libexec/perf-core/scripts/perl/rw-by-file.pl $comm
|
|
|
|
|
|
|