aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/perl/bin/rw-by-file-report
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/perl/bin/rw-by-file-report')
-rw-r--r--tools/perf/scripts/perl/bin/rw-by-file-report8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/scripts/perl/bin/rw-by-file-report b/tools/perf/scripts/perl/bin/rw-by-file-report
index eddb9ccce6a..d83070b7eeb 100644
--- a/tools/perf/scripts/perl/bin/rw-by-file-report
+++ b/tools/perf/scripts/perl/bin/rw-by-file-report
@@ -1,7 +1,13 @@
#!/bin/bash
# description: r/w activity for a program, by file
# args: <comm>
-perf trace -s ~/libexec/perf-core/scripts/perl/rw-by-file.pl $1
+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