public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] perf pmus: Sort/merge/aggregate PMUs like mrvl_ddr_pmu
@ 2024-05-14  0:28 Ian Rogers
  2024-05-14  0:28 ` [PATCH v5 1/2] " Ian Rogers
  2024-05-14  0:28 ` [PATCH v5 2/2] perf tests: Add some pmu core functionality tests Ian Rogers
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Rogers @ 2024-05-14  0:28 UTC (permalink / raw)
  To: Tuan Phan, Robin Murphy, Thomas Richter, Bhaskara Budiredla,
	Bharat Bhushan, Peter Zijlstra, Ingo Molnar,
	Arnaldo Carvalho de Melo, Namhyung Kim, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Ian Rogers, Adrian Hunter,
	Kan Liang, James Clark, Ravi Bangoria, linux-perf-users,
	linux-kernel, Will Deacon, Stephane Eranian

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.

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  | 17 ++++----
 tools/perf/util/pmus.c | 67 ++++++++++++++++------------
 tools/perf/util/pmus.h |  7 ++-
 4 files changed, 152 insertions(+), 38 deletions(-)

-- 
2.45.0.rc1.225.g2a3ae87e7f-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-14  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14  0:28 [PATCH v5 0/2] perf pmus: Sort/merge/aggregate PMUs like mrvl_ddr_pmu Ian Rogers
2024-05-14  0:28 ` [PATCH v5 1/2] " Ian Rogers
2024-05-14  0:28 ` [PATCH v5 2/2] perf tests: Add some pmu core functionality tests Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox