Skip to content

perf script python: Add more PMU fields

Jin Yao lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied
  2. v11 patch 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3perf script python: Move dsoname code to a new functiontools/perf/util/scripting-engines/trace-event-python.c+15 -80 replies
2/3perf script python: Add more PMU fieldstools/perf/util/scripting-engines/trace-event-python.c+226 -12 replies
3/3perf script python: Add fields introduction to Documentationtools/perf/Documentation/perf-script-python.txt+26 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndi Kleen
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 1 line
2.7.4