public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] perf mem amd: Fix few logic bugs
@ 2023-06-15  5:16 Ravi Bangoria
  2023-06-15  5:16 ` [PATCH v2 1/3] perf pmus: Describe semantics of 'core_pmus' and 'other_pmus' Ravi Bangoria
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Ravi Bangoria @ 2023-06-15  5:16 UTC (permalink / raw)
  To: acme
  Cc: ravi.bangoria, irogers, jolsa, namhyung, peterz, james.clark,
	alisaidi, leo.yan, adrian.hunter, kan.liang, mark.rutland, maddy,
	tmricht, linux-perf-users, linux-kernel, sandipan.das,
	ananth.narayan, santosh.shukla

Recent PMU refactoring changes[1] introduced a notion of core vs other
PMUs and made perf mem/c2c code depend only on core PMUs, which is
logically wrong for AMD as perf mem/c2c on AMD depends on IBS OP PMU,
not the core PMU. Although user visible perf mem/c2c functionality is
still working fine, internal code logic is wrong. Fix those.

[1] https://lore.kernel.org/r/20230527072210.2900565-1-irogers@google.com

v1: https://lore.kernel.org/r/20230613095506.547-1-ravi.bangoria@amd.com
v1->v2:
 - Patch #2 of last version is already picked up by Arnaldo. So skip it.
 - Scan all PMUs unconditionally in perf mem code instead of making it
   conditional on arch.

Ravi Bangoria (3):
  perf pmus: Describe semantics of 'core_pmus' and 'other_pmus'
  perf mem amd: Fix perf_pmus__num_mem_pmus()
  perf mem: Scan all PMUs instead of just core ones

 tools/perf/arch/x86/util/pmu.c | 12 ++++++++++++
 tools/perf/util/mem-events.c   | 13 +++++++++----
 tools/perf/util/pmus.c         | 17 ++++++++++++++++-
 3 files changed, 37 insertions(+), 5 deletions(-)

-- 
2.40.1


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

end of thread, other threads:[~2023-06-16 14:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-15  5:16 [PATCH v2 0/3] perf mem amd: Fix few logic bugs Ravi Bangoria
2023-06-15  5:16 ` [PATCH v2 1/3] perf pmus: Describe semantics of 'core_pmus' and 'other_pmus' Ravi Bangoria
2023-06-15  5:16 ` [PATCH v2 2/3] perf mem amd: Fix perf_pmus__num_mem_pmus() Ravi Bangoria
2023-06-15  6:02   ` Ian Rogers
2023-06-15  6:03     ` Ravi Bangoria
2023-06-15  6:12       ` [PATCH v2.1 " Ravi Bangoria
2023-06-16 13:59         ` Arnaldo Carvalho de Melo
2023-06-15  5:17 ` [PATCH v2 3/3] perf mem: Scan all PMUs instead of just core ones Ravi Bangoria
2023-06-15  6:03 ` [PATCH v2 0/3] perf mem amd: Fix few logic bugs Ian Rogers

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