diff options
| author | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
| commit | b10778a00d40b3d9fdaaf5891e802794781ff71c (patch) | |
| tree | 6ba4cbac86eecedc3f30650e7f764ecf00c83898 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 594081ee7145cc30a3977cb4e218f81213b63dc5 (diff) | |
| parent | bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 (diff) | |
Merge commit 'v3.17' into next
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
| -rw-r--r-- | tools/perf/scripts/python/syscall-counts-by-pid.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/syscall-counts-by-pid.py b/tools/perf/scripts/python/syscall-counts-by-pid.py index c64d1c55d745..daf314cc5dd3 100644 --- a/tools/perf/scripts/python/syscall-counts-by-pid.py +++ b/tools/perf/scripts/python/syscall-counts-by-pid.py | |||
| @@ -38,7 +38,7 @@ def trace_end(): | |||
| 38 | 38 | ||
| 39 | def raw_syscalls__sys_enter(event_name, context, common_cpu, | 39 | def raw_syscalls__sys_enter(event_name, context, common_cpu, |
| 40 | common_secs, common_nsecs, common_pid, common_comm, | 40 | common_secs, common_nsecs, common_pid, common_comm, |
| 41 | id, args): | 41 | common_callchain, id, args): |
| 42 | 42 | ||
| 43 | if (for_comm and common_comm != for_comm) or \ | 43 | if (for_comm and common_comm != for_comm) or \ |
| 44 | (for_pid and common_pid != for_pid ): | 44 | (for_pid and common_pid != for_pid ): |
| @@ -48,6 +48,11 @@ def raw_syscalls__sys_enter(event_name, context, common_cpu, | |||
| 48 | except TypeError: | 48 | except TypeError: |
| 49 | syscalls[common_comm][common_pid][id] = 1 | 49 | syscalls[common_comm][common_pid][id] = 1 |
| 50 | 50 | ||
| 51 | def syscalls__sys_enter(event_name, context, common_cpu, | ||
| 52 | common_secs, common_nsecs, common_pid, common_comm, | ||
| 53 | id, args): | ||
| 54 | raw_syscalls__sys_enter(**locals()) | ||
| 55 | |||
| 51 | def print_syscall_totals(): | 56 | def print_syscall_totals(): |
| 52 | if for_comm is not None: | 57 | if for_comm is not None: |
| 53 | print "\nsyscall events for %s:\n\n" % (for_comm), | 58 | print "\nsyscall events for %s:\n\n" % (for_comm), |
