blob: 30293545fcc2864f0f577669ed88a40353c1f4a9 [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
10perf trace $@ -s ~/libexec/perf-core/scripts/python/failed-syscalls-by-pid.py $comm