Tom Zanussi | 4d161f0 | 2010-01-27 02:27:58 -0600 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # description: system-wide syscall counts |
| 3 | # args: [comm] |
Tom Zanussi | 00b21a0 | 2010-04-01 23:59:24 -0500 | [diff] [blame] | 4 | if [ $# -gt 0 ] ; then |
Tom Zanussi | e61a639 | 2010-05-09 23:47:00 -0500 | [diff] [blame] | 5 | if ! expr match "$1" "-" > /dev/null ; then |
Tom Zanussi | 00b21a0 | 2010-04-01 23:59:24 -0500 | [diff] [blame] | 6 | comm=$1 |
| 7 | shift |
| 8 | fi |
| 9 | fi |
Arnaldo Carvalho de Melo | 765532c | 2010-12-23 13:10:22 -0200 | [diff] [blame] | 10 | perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm |