diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-24 16:27:57 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-25 18:14:26 +0200 |
| commit | 528b1475f9cffbaffb37f490e86780662471ef3f (patch) | |
| tree | af61b0e2bf83cab8746828d89e271f76cfd6f79c /tools/perf/python | |
| parent | 010147f87a0c0e940fe8bf14abbd20c0224d58de (diff) | |
| download | linux-next-528b1475f9cffbaffb37f490e86780662471ef3f.tar.gz linux-next-528b1475f9cffbaffb37f490e86780662471ef3f.zip | |
perf mem record: Use the IBS swfilt filter when available
IBS events with exclude_{user,kernel} bits, as used for per-thread
recording when kernel samples are not allowed, are rejected on hardware
without the privilege filter, so per-thread 'perf mem record' fails on
AMD:
$ perf mem record -o /dev/null -- true
Failure to open event 'ibs_op/ldlat=0/u' on PMU 'ibs_op' which will be removed.
Kernel v6.14 added swfilt, a software privilege filter exposed as the
'swfilt' format term, making those events usable per-thread. Give the
ibs_op memory events extra tables with the term, selected in
perf_pmu__arch_init() when the PMU exposes it, keeping the names that
need system wide mode otherwise; the knowledge that IBS needs this
stays in the arch code.
Suggested-by: Namhyung Kim <namhyung@kernel.org>
Suggested-by: Ravi Bangoria <ravi.bangoria@amd.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Ravi Bangoria <ravi.bangoria@amd.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions
