summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorTom Zanussi <tzanussi@gmail.com>2010-05-10 08:46:59 +0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-05-11 02:51:01 +0400
commit79e653f1bf2e52d12a952366e782dadf590b9d1d (patch)
tree06d1f75ff2e74b93f809269a827d83b0ff93d1cf /tools/perf
parenta4ab0c12975d1286b2696370f5e0576450609bf0 (diff)
downloadlinux-79e653f1bf2e52d12a952366e782dadf590b9d1d.tar.xz
perf/trace/scripting: syscall-counts-by-pid script cleanup
A small fix for the syscall counts by pid 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-9-git-send-email-tzanussi@gmail.com> Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/scripts/python/bin/syscall-counts-by-pid-report2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/bin/syscall-counts-by-pid-report b/tools/perf/scripts/python/bin/syscall-counts-by-pid-report
index c53362e48602..9e9d8ddd72ce 100644
--- a/tools/perf/scripts/python/bin/syscall-counts-by-pid-report
+++ b/tools/perf/scripts/python/bin/syscall-counts-by-pid-report
@@ -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