Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1440081
| From | Jiri Olsa <jolsa@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 00/10] perf python: Add support to access tracepoint fields |
| Date | 2016-07-10 13:20 +0200 |
| Message-ID | <rTkMy-8fe-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
hi,
adding support to access tracepoint fields in python scripts.
With this patchset it's possible to access tracepoint fields
in event python object like:
print "time %u prev_comm=%s prev_pid=%d prev_prio=%d prev_state=0x%x ==> next_comm=%s next_pid=%d next_prio=%d" % (
event.sample_time,
event.prev_comm,
event.prev_pid,
event.prev_prio,
event.prev_state,
event.next_comm,
event.next_pid,
event.next_prio)
Also available in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes
thanks,
jirka
---
Jiri Olsa (10):
perf tools: Make perf_evlist__event2evsel public
perf tools: Introduce trace_event__tp_format_id function
perf python: Init perf_event_attr::size in perf.evsel constructor
perf python: Fix pyrf_evlist__read_on_cpu event consuming
perf python: Put perf.event objects into dictionary
perf python: Add perf.tracepoint method
perf python: Add struct evsel into struct pyrf_event
perf python: Add support to resolve tracepoint fields
perf python: Add tracepoint example
perf script python: Fix string vs byte array resolving
tools/perf/python/tracepoint.py | 47 ++++++++++++++++++++++
tools/perf/util/evlist.c | 4 +-
tools/perf/util/evlist.h | 3 ++
tools/perf/util/python.c | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
tools/perf/util/scripting-engines/trace-event-python.c | 34 +++++++++++++---
tools/perf/util/trace-event.c | 9 +++++
tools/perf/util/trace-event.h | 2 +
7 files changed, 250 insertions(+), 11 deletions(-)
create mode 100755 tools/perf/python/tracepoint.py
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 00/10] perf python: Add support to access tracepoint fields Jiri Olsa <jolsa@kernel.org> - 2016-07-10 13:20 +0200
csiph-web