diff options
author | Tom Zanussi | 2009-11-25 08:15:52 +0100 |
---|---|---|
committer | Ingo Molnar | 2009-11-28 10:04:27 +0100 |
commit | 1ae4a971250c55e473ca53c78011fcf73809885d (patch) | |
tree | e125531c0cf808526166a38f8e6bd8803cd33b31 /tools/perf/scripts/perl/bin/rw-by-pid-record | |
parent | perf trace: Add Documentation for perf trace Perl support (diff) | |
download | kernel-qcow2-linux-1ae4a971250c55e473ca53c78011fcf73809885d.tar.gz kernel-qcow2-linux-1ae4a971250c55e473ca53c78011fcf73809885d.tar.xz kernel-qcow2-linux-1ae4a971250c55e473ca53c78011fcf73809885d.zip |
perf trace: Add a scripts/perl/bin for perf trace shell scripts
To capture the relevant events for a given Perl script and to
avoid having to continually remember and type in long
command-lines, add a scripts/perl/bin directory containing two
simple shell scripts for each Perl script, one for recording and
one for processing/display. For example, to record perf data for
the rw-by-pid.pl script, run scripts/perl/bin/rw-by-pid-record
and to actually run the script and display the output run
scripts/perl/bin/rw-by-pid-report.
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
Cc: anton@samba.org
Cc: hch@infradead.org
LKML-Reference: <1259133352-23685-8-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/scripts/perl/bin/rw-by-pid-record')
-rw-r--r-- | tools/perf/scripts/perl/bin/rw-by-pid-record | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/scripts/perl/bin/rw-by-pid-record b/tools/perf/scripts/perl/bin/rw-by-pid-record new file mode 100644 index 000000000000..8903979c5b6c --- /dev/null +++ b/tools/perf/scripts/perl/bin/rw-by-pid-record @@ -0,0 +1,2 @@ +#!/bin/bash +perf record -c 1 -f -a -M -R -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write |