projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf trace/scripting: Add support for script args
[linux-block.git]
/
tools
/
perf
/
scripts
/
perl
/
rw-by-file.pl
diff --git
a/tools/perf/scripts/perl/rw-by-file.pl
b/tools/perf/scripts/perl/rw-by-file.pl
index 61f91561d848b91d766b5df0bb49a0131095687f..2a39097687b9f70dffb2fe83f4477539ff8e98b4 100644
(file)
--- a/
tools/perf/scripts/perl/rw-by-file.pl
+++ b/
tools/perf/scripts/perl/rw-by-file.pl
@@
-18,8
+18,9
@@
use lib "./Perf-Trace-Util/lib";
use Perf::Trace::Core;
use Perf::Trace::Util;
-# change this to the comm of the program you're interested in
-my $for_comm = "perf";
+my $usage = "perf trace -s rw-by-file.pl <comm>\n";
+
+my $for_comm = shift or die $usage;
my %reads;
my %writes;