[PATCH v1 0/4] perf hwmon related improvements

From: Ian Rogers
Date: Tue Jan 14 2025 - 18:13:58 EST


Try to do less scanning of files/directories with or without hwmon
PMUs. Don't merge all events with the same name, only merge those on
the same PMU ignoring suffix. Refactor uniquification so the evsels
with the same name as other evsels in the evlist are uniquified.

Ian Rogers (4):
perf evsel: Reduce scanning core PMUs in is_hybrid
perf pmus: Restructure pmu_read_sysfs to scan fewer PMUs
perf stat: Don't merge counters purely on name
perf stat: Changes to event name uniquification

tools/perf/util/evsel.c | 4 +-
tools/perf/util/evsel.h | 1 +
tools/perf/util/pmu.h | 2 +
tools/perf/util/pmus.c | 144 +++++++++++++++++++++------------
tools/perf/util/stat-display.c | 111 +++++++++++++++++--------
tools/perf/util/stat.c | 13 ++-
6 files changed, 187 insertions(+), 88 deletions(-)

--
2.48.0.rc2.279.g1de40edade-goog