History

perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available

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.

Daniel Bristot de Oliveira committed 12 years ago

Commit 07100871 parent 1c92f8810 files · +35 −5Browse files

Showing the changes to tools/perf/scripts/python/failed-syscalls-by-pid.py (1 of 10 files). Show all

Unified · Split

tools/perf/scripts/python/failed-syscalls-by-pid.py+5−0
@@ -50,6 +50,11 @@ def raw_syscalls__sys_exit(event_name, context, common_cpu, · 49 unmodified lines
5050 except TypeError:
5151 syscalls[common_comm][common_pid][id][ret] = 1
5252
53+def syscalls__sys_exit(event_name, context, common_cpu,
54+ common_secs, common_nsecs, common_pid, common_comm,
55+ id, ret):
56+ raw_syscalls__sys_exit(**locals())
57+
5358 def print_error_totals():
5459 if for_comm is not None:
5560 print "\nsyscall errors for %s:\n\n" % (for_comm),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t