summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/perl/bin/failed-syscalls-report
diff options
context:
space:
mode:
authorTom Zanussi2010-05-10 06:46:52 +0200
committerArnaldo Carvalho de Melo2010-05-11 00:50:54 +0200
commitc3f5fd287aa897f710f3305367a1d256c9cf3e83 (patch)
tree5b4b57633cb750923e7f427260ddd9a74c9bd56b /tools/perf/scripts/perl/bin/failed-syscalls-report
parentperf hist: Calculate max_sym name len and nr_entries (diff)
downloadkernel-qcow2-linux-c3f5fd287aa897f710f3305367a1d256c9cf3e83.tar.gz
kernel-qcow2-linux-c3f5fd287aa897f710f3305367a1d256c9cf3e83.tar.xz
kernel-qcow2-linux-c3f5fd287aa897f710f3305367a1d256c9cf3e83.zip
perf/trace/scripting: failed-syscalls script cleanup
A couple small fixes for the failed syscalls script: - The script description says it can be restricted to a specific comm, make it so. - 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-2-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/scripts/perl/bin/failed-syscalls-report')
-rw-r--r--tools/perf/scripts/perl/bin/failed-syscalls-report2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/scripts/perl/bin/failed-syscalls-report b/tools/perf/scripts/perl/bin/failed-syscalls-report
index f6346082a8fc..e3a5e55d54ff 100644
--- a/tools/perf/scripts/perl/bin/failed-syscalls-report
+++ b/tools/perf/scripts/perl/bin/failed-syscalls-report
@@ -2,7 +2,7 @@
# description: system-wide failed syscalls
# args: [comm]
if [ $# -gt 0 ] ; then
- if ! expr match "$1" "-" ; then
+ if ! expr match "$1" "-" > /dev/null ; then
comm=$1
shift
fi