Skip to content

perf tools amd ibs: Fixes + Zen6 enhancements

Ravi Bangoria linux-perf-users lkml sashiko 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 4 repliesIn review
  2. v2 posting 2/28 patches 2 repliesSuperseded
  3. v2 posting 1/27 patches 6 repliesApplied
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches2 repliesSuperseded

Changes in v3 from the cover letter

- Instead of removing the priv modifier unit test completely, skip it on platforms that supports hardware privilege filtering. (Namhyung)
- Rebased the series on latest perf-tools-next/perf-tools-next.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8perf test amd ibs: Fix incorrect kernel version checktools/perf/arch/x86/tests/amd-ibs-period.c+1 -10 replies
2/8perf tool ibs: Sync AMD IBS header filetools/arch/x86/include/asm/amd/ibs.h+3 -10 replies
3/8perf test ibs: Skip privilege test on Zen6 and newer platformstools/perf/tests/shell/amd-ibs-swfilt.sh+33 -40 replies
4/8perf amd ibs: Suppress bogus TlbRefillLat and DCPhysAd on Zen4+tools/perf/util/amd-sample-raw.c+14 -31 reply
5/8perf amd ibs: Make Fetch status bits dependent on PhyAddrValid for newer platformstools/perf/util/amd-sample-raw.c+40 -20 replies
6/8perf amd ibs: Decode Remote-Socket flag in IBS OP raw dumptools/perf/util/amd-sample-raw.c+16 -20 replies
7/8perf amd ibs: Decode Streaming-store flag in IBS OP raw dumptools/perf/util/amd-sample-raw.c+14 -40 replies
8/8perf doc: Document new IBS capabilities in man pagetools/perf/Documentation/perf-amd-ibs.txt+39 -00 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNamhyung Kim
SeriesA-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/8] perf tools amd ibs: Fixes + Zen6 enhancements

o Fix kernel version check in perf IBS unit test.
o On Zen6 and newer platforms, skip perf unit test that assumes IBS don't have hardware-assisted privilege filter.
o Starting with Zen4, the validity of several IBS fields changes. Add the required dependency checks when decoding IBS MSRs.
o Zen6 and future platforms extends IBS OP with Streaming-Store and Remote-Socket indicators for load/store instructions. Add decoding support for these new bits.
o Document new IBS features in perf-amd-ibs man page

IBS Zen6 enhancements doc:
AMD64 Zen6 Instruction Based Sampling (IBS) Extensions and Features, Pub. 69205 Rev. 1.00 March 2026
https://bugzilla.kernel.org/attachment.cgi?id=310002

Patches are prepared on perf-tools-next/perf-tools-next (53bc03289278).

v2: https://lore.kernel.org/r/[email protected]
v2->v3:
- Instead of removing the priv modifier unit test completely, skip it on platforms that supports hardware privilege filtering. (Namhyung)
- Rebased the series on latest perf-tools-next/perf-tools-next.

Ravi Bangoria (8):
perf test amd ibs: Fix incorrect kernel version check perf tool ibs: Sync AMD IBS header file
perf test ibs: Skip privilege test on Zen6 and newer platforms perf amd ibs: Suppress bogus TlbRefillLat and DCPhysAd on Zen4+ perf amd ibs: Make Fetch status bits dependent on PhyAddrValid for
newer platforms
perf amd ibs: Decode Remote-Socket flag in IBS OP raw dump perf amd ibs: Decode Streaming-store flag in IBS OP raw dump perf doc: Document new IBS capabilities in man page

 tools/arch/x86/include/asm/amd/ibs.h       |  4 +-
 tools/perf/Documentation/perf-amd-ibs.txt  | 39 ++++++++++
 tools/perf/arch/x86/tests/amd-ibs-period.c |  2 +-
 tools/perf/tests/shell/amd-ibs-swfilt.sh   | 37 ++++++++-
 tools/perf/util/amd-sample-raw.c           | 87 ++++++++++++++++++++--
 5 files changed, 156 insertions(+), 13 deletions(-)
Signature · 1 line
2.43.0