diff options
author | Tom Zanussi <[email protected]> | 2010-04-01 23:59:24 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-04-14 11:56:08 +0200 |
commit | 00b21a01935892a2b97613f10300434998f45093 (patch) | |
tree | 574181758da96e53edbc73ac9b6870cb5ee2b01c /tools/perf/scripts/perl/bin/rw-by-file-record | |
parent | 47902f3611b392209e2a412bf7ec02dca95e666d (diff) |
perf trace/scripting: Enable scripting shell scripts for live mode
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 <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/perl/bin/rw-by-file-record')
-rw-r--r-- | tools/perf/scripts/perl/bin/rw-by-file-record | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/perl/bin/rw-by-file-record b/tools/perf/scripts/perl/bin/rw-by-file-record index b25056ebf963..a828679837a8 100644 --- a/tools/perf/scripts/perl/bin/rw-by-file-record +++ b/tools/perf/scripts/perl/bin/rw-by-file-record @@ -1,2 +1,3 @@ #!/bin/bash -perf record -c 1 -f -a -M -R -e syscalls:sys_enter_read -e syscalls:sys_enter_write +perf record -c 1 -f -a -M -R -e syscalls:sys_enter_read -e syscalls:sys_enter_write $@ + |