diff options
author | Jiri Olsa <[email protected]> | 2016-07-10 13:07:57 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-12 16:17:14 -0300 |
commit | 85e37de3a993b9e407398f792b996acad27f4cdc (patch) | |
tree | 97d0b8f156785d020daa5e355567a162f8ef79f9 /net/unix/af_unix.c | |
parent | e8968e654191390a1300f0847250353a1c9da30d (diff) |
perf python: Put perf.event objects into dictionary
Make perf.event object parts of the perf module dictionary so we can
address them by name.
The following objects/names are added:
mmap_event
lost_event
comm_event
task_event
throttle_event
task_event
read_event
sample_event
switch_event
We can now use it in python script like:
...
event = evlist.read_on_cpu(cpu)
...
if not isinstance(event, perf.sample_event):
Signed-off-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions