linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] perf/amd/ibs: Introduce load/store SW filter
@ 2025-05-29 12:34 Ravi Bangoria
  2025-05-29 12:34 ` [PATCH 1/4] perf/amd/ibs: Add load/store SW filters to IBS OP PMU Ravi Bangoria
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ravi Bangoria @ 2025-05-29 12:34 UTC (permalink / raw)
  To: Peter Zijlstra, Arnaldo Carvalho de Melo, Namhyung Kim
  Cc: Ravi Bangoria, Ingo Molnar, Stephane Eranian, Ian Rogers,
	Kan Liang, James Clark, Leo Yan, Joe Mario, linux-kernel,
	linux-perf-users, Santosh Shukla, Ananth Narayan, Sandipan Das

Since current IBS OP PMU does not have the capability to tag only load/
stores instructions, tools like perf mem/c2c ends up recording lots of
unwanted samples. See for example [1]. All these unwanted samples are:

1) Passed from kernel to userspace
2) Stored in the perf.data file
3) Processed every time while running perf mem/c2c report
4) Skews perf mem/c2c overhead computations

So, better to get rid of them early in the IBS NMI handler itself.
Although SW filter is not an ideal solution, it's better compared to
no filter at all.

[1]: https://lore.kernel.org/r/aBTyYv_yXCPkn2d0@x1

Patches are prepated on perf-tools-next/perf-tools-next (4d9b5146f0d9).


Ravi Bangoria (4):
  perf/amd/ibs: Add load/store SW filters to IBS OP PMU
  perf mem/c2c amd: Wire IBS OP PMU load/store SW filter
  perf test amd: Add IBS load/store swfilt tests
  perf doc amd: Update perf-amd-ibs man page

 arch/x86/events/amd/ibs.c                  | 73 ++++++++++++++++++++--
 include/linux/perf_event.h                 | 14 +++++
 tools/perf/Documentation/perf-amd-ibs.txt  | 72 +++++++++++++++------
 tools/perf/arch/x86/util/mem-events.c      | 12 ++++
 tools/perf/arch/x86/util/mem-events.h      |  2 +
 tools/perf/arch/x86/util/pmu.c             | 17 +++--
 tools/perf/tests/shell/amd-ibs-swfilt.sh   | 26 ++++++++
 tools/perf/tests/shell/test_data_symbol.sh | 26 ++++----
 tools/perf/util/mem-events.c               |  2 +-
 9 files changed, 205 insertions(+), 39 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-06-10  5:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 12:34 [PATCH 0/4] perf/amd/ibs: Introduce load/store SW filter Ravi Bangoria
2025-05-29 12:34 ` [PATCH 1/4] perf/amd/ibs: Add load/store SW filters to IBS OP PMU Ravi Bangoria
2025-05-31  7:53   ` Ingo Molnar
2025-06-03  6:52     ` Namhyung Kim
2025-06-10  5:12       ` Ravi Bangoria
2025-05-29 12:34 ` [PATCH 2/4] perf mem/c2c amd: Wire IBS OP PMU load/store SW filter Ravi Bangoria
2025-05-29 12:34 ` [PATCH 3/4] perf test amd: Add IBS load/store swfilt tests Ravi Bangoria
2025-05-29 12:34 ` [PATCH 4/4] perf doc amd: Update perf-amd-ibs man page 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).