From: Tom Zanussi Date: Mon, 10 May 2010 04:47:00 +0000 (-0500) Subject: perf/trace/scripting: syscall-counts script cleanup X-Git-Tag: v3.0~4461^2~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e61a639a794063d78fd248a37ce2c21d5c81fc19;p=platform%2Fkernel%2Flinux-amlogic.git perf/trace/scripting: syscall-counts script cleanup A small fix for the syscall counts script: - silence the match output in the shell script Cc: Frédéric Weisbecker Cc: Ingo Molnar LKML-Reference: <1273466820-9330-10-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/syscall-counts-report b/tools/perf/scripts/python/bin/syscall-counts-report index 8c21552..dc076b6 100644 --- a/tools/perf/scripts/python/bin/syscall-counts-report +++ b/tools/perf/scripts/python/bin/syscall-counts-report @@ -2,7 +2,7 @@ # description: system-wide syscall counts # args: [comm] if [ $# -gt 0 ] ; then - if ! expr match "$1" "-" ; then + if ! expr match "$1" "-" > /dev/null ; then comm=$1 shift fi