[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250529123456.1801-1-ravi.bangoria@amd.com>
Date: Thu, 29 May 2025 12:34:52 +0000
From: Ravi Bangoria <ravi.bangoria@....com>
To: Peter Zijlstra <peterz@...radead.org>, Arnaldo Carvalho de Melo
<acme@...nel.org>, Namhyung Kim <namhyung@...nel.org>
CC: Ravi Bangoria <ravi.bangoria@....com>, Ingo Molnar <mingo@...hat.com>,
Stephane Eranian <eranian@...gle.com>, Ian Rogers <irogers@...gle.com>, "Kan
Liang" <kan.liang@...ux.intel.com>, James Clark <james.clark@...aro.org>,
"Leo Yan" <leo.yan@....com>, Joe Mario <jmario@...hat.com>,
<linux-kernel@...r.kernel.org>, <linux-perf-users@...r.kernel.org>, "Santosh
Shukla" <santosh.shukla@....com>, Ananth Narayan <ananth.narayan@....com>,
Sandipan Das <sandipan.das@....com>
Subject: [PATCH 0/4] perf/amd/ibs: Introduce load/store SW filter
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
Powered by blists - more mailing lists