Tom Zanussi | 1ae4a97 | 2009-11-25 01:15:52 -0600 | [diff] [blame] | 1 | #!/bin/bash |
Tom Zanussi | 4b9c0c5 | 2009-12-15 02:53:38 -0600 | [diff] [blame] | 2 | # description: r/w activity for a program, by file |
3 | # args: <comm> | ||||
Tom Zanussi | 00b21a0 | 2010-04-01 23:59:24 -0500 | [diff] [blame] | 4 | if [ $# -lt 1 ] ; then |
5 | echo "usage: rw-by-file <comm>" | ||||
6 | exit | ||||
7 | fi | ||||
8 | comm=$1 | ||||
9 | shift | ||||
Arnaldo Carvalho de Melo | 765532c | 2010-12-23 13:10:22 -0200 | [diff] [blame] | 10 | perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm |