aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/syscall-counts-record
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/perf/scripts/python/bin/syscall-counts-record3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/bin/syscall-counts-record b/tools/perf/scripts/python/bin/syscall-counts-record
index 4efbfaa7f6a5..d6940841e54f 100644
--- a/tools/perf/scripts/python/bin/syscall-counts-record
+++ b/tools/perf/scripts/python/bin/syscall-counts-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