summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/syscall-counts-by-pid-record
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-by-pid-record')
-rw-r--r--tools/perf/scripts/python/bin/syscall-counts-by-pid-record3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/bin/syscall-counts-by-pid-record b/tools/perf/scripts/python/bin/syscall-counts-by-pid-record
index 4efbfaa7f6a5..d6940841e54f 100644
--- a/tools/perf/scripts/python/bin/syscall-counts-by-pid-record
+++ b/tools/perf/scripts/python/bin/syscall-counts-by-pid-record
@@ -1,2 +1,3 @@
#!/bin/bash
-perf record -e raw_syscalls:sys_enter $@
+(perf record -e raw_syscalls:sys_enter $@ || \
+ perf record -e syscalls:sys_enter $@) 2> /dev/null
OpenPOWER on IntegriCloud