aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/failed-syscalls-by-pid-record
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2014-07-05 11:28:13 +0200
committerIngo Molnar <mingo@kernel.org>2014-07-05 11:28:13 +0200
commit432100ba2aacc2146a2b1f26e5b5ae5d6e29972a (patch)
treede1bd7b51e55c8b61507a56d69e6e333b4c84cd7 /tools/perf/scripts/python/bin/failed-syscalls-by-pid-record
parentperf/x86: Micro-optimize nhmex_rbox_get_constraint() (diff)
parentperf trace: Add possibility to switch off syscall events (diff)
downloadlinux-432100ba2aacc2146a2b1f26e5b5ae5d6e29972a.tar.gz
linux-432100ba2aacc2146a2b1f26e5b5ae5d6e29972a.zip
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo: New features: * Add support for pagefault tracing in 'trace', please see multiple examples in the changeset messages (Stanislav Fomichev). User visible changes: * Fallback to syscalls:* when raw_syscalls:* is not available in the perl and python perf scripts. (Daniel Bristot de Oliveira) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/failed-syscalls-by-pid-record')
-rw-r--r--tools/perf/scripts/python/bin/failed-syscalls-by-pid-record3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/bin/failed-syscalls-by-pid-record b/tools/perf/scripts/python/bin/failed-syscalls-by-pid-record
index 8104895a7b67..74685f318379 100644
--- a/tools/perf/scripts/python/bin/failed-syscalls-by-pid-record
+++ b/tools/perf/scripts/python/bin/failed-syscalls-by-pid-record
@@ -1,2 +1,3 @@
#!/bin/bash
-perf record -e raw_syscalls:sys_exit $@
+(perf record -e raw_syscalls:sys_exit $@ || \
+ perf record -e syscalls:sys_exit $@) 2> /dev/null