xref: /linux/tools/perf/scripts/perl/bin/failed-syscalls-report (revision c3f5fd287aa897f710f3305367a1d256c9cf3e83)
14d161f03STom Zanussi#!/bin/bash
24d161f03STom Zanussi# description: system-wide failed syscalls
34d161f03STom Zanussi# args: [comm]
400b21a01STom Zanussiif [ $# -gt 0 ] ; then
5*c3f5fd28STom Zanussi    if ! expr match "$1" "-" > /dev/null ; then
600b21a01STom Zanussi	comm=$1
700b21a01STom Zanussi	shift
800b21a01STom Zanussi    fi
900b21a01STom Zanussifi
1000b21a01STom Zanussiperf trace $@ -s ~/libexec/perf-core/scripts/perl/failed-syscalls.pl $comm
11