[PATCH v2 0/3] perf script python: Add more PMU fields

From: Jin Yao
Date: Thu May 31 2018 - 21:07:40 EST


When doing pmu sampling and then running a script with
perf script -s script.py, the process_event function gets
dictionary with some fields from the perf ring buffer
(like ip, sym, callchain etc).

But we miss quite a few fields we report now, for example,
LBRs,data source,weight,transaction,iregs,uregs,and etc.

This patch adds these fields for perf script python.

Jin Yao (3):
perf script python: Move dsoname code to a new function
perf script python: Add more PMU fields
perf script python: Add fields introduction to Documentation

tools/perf/Documentation/perf-script-python.txt | 26 +++
.../util/scripting-engines/trace-event-python.c | 250 ++++++++++++++++++++-
2 files changed, 267 insertions(+), 9 deletions(-)

--
2.7.4