summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/perl/bin/failed-syscalls-record
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/perl/bin/failed-syscalls-record')
-rw-r--r--tools/perf/scripts/perl/bin/failed-syscalls-record3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/perl/bin/failed-syscalls-record b/tools/perf/scripts/perl/bin/failed-syscalls-record
index 8104895a7b67..74685f318379 100644
--- a/tools/perf/scripts/perl/bin/failed-syscalls-record
+++ b/tools/perf/scripts/perl/bin/failed-syscalls-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
OpenPOWER on IntegriCloud