blob: 4028d92dc4ae6602927d3c82c02f3973506d995e [file] [log] [blame]
Tom Zanussi4d161f02010-01-27 02:27:58 -06001#!/bin/bash
2# description: system-wide failed syscalls
3# args: [comm]
Tom Zanussi00b21a02010-04-01 23:59:24 -05004if [ $# -gt 0 ] ; then
Tom Zanussic3f5fd22010-05-09 23:46:52 -05005 if ! expr match "$1" "-" > /dev/null ; then
Tom Zanussi00b21a02010-04-01 23:59:24 -05006 comm=$1
7 shift
8 fi
9fi
Ben Hutchings44e668c2010-10-10 16:10:03 +010010perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/failed-syscalls.pl $comm