perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available
[linux-2.6-microblaze.git] / tools / perf / scripts / python / bin / failed-syscalls-by-pid-record
index 8104895..74685f3 100644 (file)
@@ -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