Older kernels (e.g., RHEL6) do system call tracing via the syscalls:sys_{enter,exit} tracepoints rather than using raw_syscalls:*. Update perf python and perl scripts to fallback to syscalls:* when raw_syscalls:* isn't available.
Showing the changes to tools/perf/scripts/python/bin (4 of 10 files). Show all
Unified · Split
| @@ -1,2 +1,3 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | perf record -e raw_syscalls:sys_exit $@ | 2 | (perf record -e raw_syscalls:sys_exit $@ || \ |
| 3 | perf record -e syscalls:sys_exit $@) 2> /dev/null | ||
| @@ -1,2 +1,3 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | perf record -e raw_syscalls:sys_enter $@ | 2 | (perf record -e raw_syscalls:sys_enter $@ || \ |
| 3 | perf record -e syscalls:sys_enter $@) 2> /dev/null | ||
| @@ -1,2 +1,3 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | perf record -e raw_syscalls:sys_enter $@ | 2 | (perf record -e raw_syscalls:sys_enter $@ || \ |
| 3 | perf record -e syscalls:sys_enter $@) 2> /dev/null | ||
| @@ -1,2 +1,3 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | perf record -e raw_syscalls:sys_enter $@ | 2 | (perf record -e raw_syscalls:sys_enter $@ || \ |
| 3 | perf record -e syscalls:sys_enter $@) 2> /dev/null | ||