2010-01-27 02:27:58 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
# description: system-wide failed syscalls
|
|
|
|
|
# args: [comm]
|
2010-04-01 23:59:24 -05:00
|
|
|
if [ $# -gt 0 ] ; then
|
2010-05-09 23:46:52 -05:00
|
|
|
if ! expr match "$1" "-" > /dev/null ; then
|
2010-04-01 23:59:24 -05:00
|
|
|
comm=$1
|
|
|
|
|
shift
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2010-12-23 13:10:22 -02:00
|
|
|
perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/failed-syscalls.pl $comm
|