From: Tom Zanussi Date: Mon, 10 May 2010 04:46:58 +0000 (-0500) Subject: perf/trace/scripting: failed-syscalls-by-pid script cleanup X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a4ab0c12975d1286b2696370f5e0576450609bf0;p=mv-sheeva.git perf/trace/scripting: failed-syscalls-by-pid script cleanup A small fixe for the failed syscalls by pid script: - silence the match output in the shell script Cc: Frédéric Weisbecker Cc: Ingo Molnar LKML-Reference: <1273466820-9330-8-git-send-email-tzanussi@gmail.com> Signed-off-by: Tom Zanussi Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report b/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report index 8c128eff9c0..30293545fcc 100644 --- a/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report +++ b/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report @@ -2,7 +2,7 @@ # description: system-wide failed syscalls, by pid # args: [comm] if [ $# -gt 0 ] ; then - if ! expr match "$1" "-" ; then + if ! expr match "$1" "-" > /dev/null ; then comm=$1 shift fi