perf/trace/scripting: syscall-counts-by-pid script cleanup
authorTom Zanussi <[email protected]>
Mon, 10 May 2010 04:46:59 +0000 (23:46 -0500)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 10 May 2010 22:51:01 +0000 (19:51 -0300)
A small fix for the syscall counts by pid script:

- silence the match output in the shell script

Cc: Frédéric Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
LKML-Reference: <1273466820[email protected]>
Signed-off-by: Tom Zanussi <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/scripts/python/bin/syscall-counts-by-pid-report

index c53362e48602f80ea77c07063ffe615af69d52d3..9e9d8ddd72ced9d6b652c5c130070b86ecdc1cfe 100644 (file)
@@ -2,7 +2,7 @@
 # description: system-wide syscall counts, by pid
 # args: [comm]
 if [ $# -gt 0 ] ; then
-    if ! expr match "$1" "-" ; then
+    if ! expr match "$1" "-" > /dev/null ; then
        comm=$1
        shift
     fi