[PATCH v2 0/6] Extra verbose/perf-list details

From: Ian Rogers
Date: Thu Mar 07 2024 - 12:40:33 EST


Add more encoding detail and raw event details in perf list. Add PMU
name and reverse lookup from config to event name to
perf_event_attr_fprintf. This makes the verbose output easier to read,
and the perf list information more specific.

v2. Address feedback from Kan Liang, "Raw hardware event descriptor"
becomes "Raw event descriptor" add assert to keep term numbers in
sync, fix a commit message.

Ian Rogers (6):
perf list: Add tracepoint encoding to detailed output
perf pmu: Drop "default_core" from alias names
perf list: Allow wordwrap to wrap on commas
perf list: Give more details about raw event encodings
perf tools: Use pmus to describe type from attribute
perf tools: Add/use PMU reverse lookup from config to name

tools/perf/builtin-list.c | 21 ++++-
tools/perf/util/perf_event_attr_fprintf.c | 26 +++++--
tools/perf/util/pmu.c | 83 +++++++++++++++++++-
tools/perf/util/pmu.h | 4 +
tools/perf/util/pmus.c | 94 +++++++++++++++++++++++
tools/perf/util/pmus.h | 1 +
tools/perf/util/print-events.c | 55 +++++++------
7 files changed, 243 insertions(+), 41 deletions(-)

--
2.44.0.278.ge034bb2e1d-goog