Skip to content

Commit

Permalink
perf/trace/scripting: syscall-counts-by-pid script cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom Zanussi authored and Arnaldo Carvalho de Melo committed May 10, 2010
1 parent a4ab0c1 commit 79e653f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/scripts/python/bin/syscall-counts-by-pid-report
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79e653f

Please sign in to comment.