Skip to content

perf/ibs: Fix interface via core pmu events

Ravi Bangoria linux-perf-users lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Instead of using pmu capability, use error code -ESRCH to forward the event to different pmu.
- Rebase on v6.3-rc1

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf/ibs: Introduce ibs_core_pmu_event()arch/x86/events/amd/ibs.c arch/x86/include/asm/perf_event.h+31 -230 replies
2/3perf/ibs: Fix interface via core pmu eventsarch/x86/events/amd/core.c kernel/events/core.c+17 -46 replies
3/3perf test: Add selftest to test IBS invocation via core pmu eventstools/perf/tests/Build tools/perf/tests/builtin-test.c tools/perf/tests/ibs-via-core-pmu.c +1 more+73 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] perf/ibs: Fix interface via core pmu events

IBS used to allow event creation via core pmu events with precise_ip attribute set, but it's broken since late 2019. 1st patch does pre- req changes, 2nd patch fixes the issue and 3rd patch adds simple perf test for the same.

v1: https://lore.kernel.org/r/[email protected]
v1->v2:
- Instead of using pmu capability, use error code -ESRCH to forward the event to different pmu.
- Rebase on v6.3-rc1

Ravi Bangoria (3):
perf/ibs: Introduce ibs_core_pmu_event()
perf/ibs: Fix interface via core pmu events
perf test: Add selftest to test IBS invocation via core pmu events

 arch/x86/events/amd/core.c          | 11 +++--
 arch/x86/events/amd/ibs.c           | 52 +++++++++++----------
 arch/x86/include/asm/perf_event.h   |  2 +
 kernel/events/core.c                | 10 ++++-
 tools/perf/tests/Build              |  1 +
 tools/perf/tests/builtin-test.c     |  1 +
 tools/perf/tests/ibs-via-core-pmu.c | 70 +++++++++++++++++++++++++++++
 tools/perf/tests/tests.h            |  1 +
 8 files changed, 121 insertions(+), 27 deletions(-)
 create mode 100644 tools/perf/tests/ibs-via-core-pmu.c
Signature · 1 line
2.39.2