]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
perf/trace/scripting: syscall-counts script cleanup
authorTom Zanussi <tzanussi@gmail.com>
Mon, 10 May 2010 04:47:00 +0000 (23:47 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 May 2010 22:51:02 +0000 (19:51 -0300)
A small fix for the syscall counts script:

 - silence the match output in the shell script

Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <1273466820-9330-10-git-send-email-tzanussi@gmail.com>
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/bin/syscall-counts-report

index 8c21552b3cdc38ab08dcdfa7ebce4822feca300d..dc076b618796fa999b3024540c9c747a2da4553a 100644 (file)
@@ -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