Skip to content

perf mem amd: Fix few logic bugs

Ravi Bangoria linux-perf-users lkml 2 versions – Applied

Status from this message: Thanks, applied the series.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- 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.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3perf pmus: Describe semantics of 'core_pmus' and 'other_pmus'tools/perf/util/pmus.c+15 -00 replies
2/3perf mem amd: Fix perf_pmus__num_mem_pmus()tools/perf/arch/x86/util/pmu.c tools/perf/util/pmus.c+13 -12 replies
2/3perf mem amd: Fix perf_pmus__num_mem_pmus()tools/perf/arch/x86/util/pmu.c tools/perf/util/pmus.c+13 -11 reply
3/3perf mem: Scan all PMUs instead of just core onestools/perf/util/mem-events.c+9 -40 replies

Reviews trailers per patch

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

PatchIan Rogers
SeriesR-b
1/3
2/3
2/3
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] perf mem amd: Fix few logic bugs

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/[email protected]

v1: https://lore.kernel.org/r/[email protected]
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(-)
Signature · 1 line
2.40.1