summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/perl/rw-by-file.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/perl/rw-by-file.pl')
-rw-r--r--tools/perf/scripts/perl/rw-by-file.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/scripts/perl/rw-by-file.pl b/tools/perf/scripts/perl/rw-by-file.pl
index 61f91561d848..2a39097687b9 100644
--- 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;