linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] perf/ibs: Fix interface via core pmu events
@ 2023-03-09 10:11 Ravi Bangoria
  2023-03-09 10:11 ` [PATCH v2 1/3] perf/ibs: Introduce ibs_core_pmu_event() Ravi Bangoria
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ravi Bangoria @ 2023-03-09 10:11 UTC (permalink / raw)
  To: peterz
  Cc: ravi.bangoria, namhyung, eranian, acme, mark.rutland, jolsa,
	irogers, bp, x86, linux-perf-users, linux-kernel, sandipan.das,
	ananth.narayan, santosh.shukla

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/20230302092109.367-1-ravi.bangoria@amd.com
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

-- 
2.39.2


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

end of thread, other threads:[~2023-03-13 15:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-09 10:11 [PATCH v2 0/3] perf/ibs: Fix interface via core pmu events Ravi Bangoria
2023-03-09 10:11 ` [PATCH v2 1/3] perf/ibs: Introduce ibs_core_pmu_event() Ravi Bangoria
2023-03-09 10:11 ` [PATCH v2 2/3] perf/ibs: Fix interface via core pmu events Ravi Bangoria
2023-03-11  0:32   ` Namhyung Kim
2023-03-13 12:35     ` Ravi Bangoria
2023-03-12 14:54   ` Peter Zijlstra
2023-03-13 12:29     ` Ravi Bangoria
2023-03-13 14:21       ` Peter Zijlstra
2023-03-13 15:40         ` Ravi Bangoria
2023-03-09 10:11 ` [PATCH v2 3/3] perf test: Add selftest to test IBS invocation " Ravi Bangoria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).