git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ 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
[safe/jmp/linux-2.6]
/
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
61f9156
..
2a39097
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;