Skip to content

perf pmus: Sort/merge/aggregate PMUs like mrvl_ddr_pmu

Ian Rogers linux-perf-users lkml 6 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 8 repliesApplied
  2. v52 patches 0 repliesSuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches6 repliesApplied
v22 patches1 replySuperseded
v11 patch3 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/2perf pmus: Sort/merge/aggregate PMUs like mrvl_ddr_pmutools/perf/util/pmu.c tools/perf/util/pmus.c tools/perf/util/pmus.h+65 -426 replies
2/2perf tests: Add some pmu core functionality teststools/perf/tests/pmu.c+99 -00 replies

Reviews trailers per patch

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

PatchNamhyung Kim
SeriesA-b
1/2
2/2

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

Read the v6 thread

Cover letter [PATCH v6 0/2] perf pmus: Sort/merge/aggregate PMUs like mrvl_ddr_pmu

The mrvl_ddr_pmu is uncore and has a hexadecimal address suffix. Current PMU sorting/merging code assumes uncore PMU names start with uncore_ and have a decimal suffix. Add support for hexadecimal suffixes and add tests.

v6. Add necessary fix in pmu.c to perf_pmu__match_ignoring_suffix that
also needs to ignore hex suffixes.
v5. In pmus.h remove needless addition of #include list.h but add
stddef.h for size_t.
v4. Workaround GCC build error by using unsigned types. Don't consider
short hex suffixes as suffixes (e.g. cpum_cf) and test this behavior.
v3. Rebase and move tests from pmus.c to the existing pmu.c.

Ian Rogers (2):
perf pmus: Sort/merge/aggregate PMUs like mrvl_ddr_pmu perf tests: Add some pmu core functionality tests

 tools/perf/tests/pmu.c | 99 ++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/pmu.c  | 33 ++++++++------
 tools/perf/util/pmus.c | 67 ++++++++++++++++------------
 tools/perf/util/pmus.h |  7 ++-
 4 files changed, 164 insertions(+), 42 deletions(-)
Signature · 1 line
2.45.0.rc1.225.g2a3ae87e7f-goog