blob: 03587021463d4ef6c7d25b4d0a852178fded5a86 [file] [log] [blame]
Tom Zanussi4d161f02010-01-27 02:27:58 -06001#!/bin/bash
2# description: system-wide failed syscalls, by pid
3# args: [comm]
Tom Zanussi00b21a02010-04-01 23:59:24 -05004if [ $# -gt 0 ] ; then
Tom Zanussia4ab0c12010-05-09 23:46:58 -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/python/failed-syscalls-by-pid.py $comm