projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
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
8104895
..
74685f3
100644
(file)
--- 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