Files
Michael Petlan 15c270dcec perf/x86/intel: Add support for PEBS memory auxiliary info field in DMR
JIRA: https://redhat.atlassian.net/browse/RHEL-115121

upstream
========
commit d2bdcde9626cbea0c44a6aaa33b440c8adf81e09
Author: Dapeng Mi <dapeng1.mi@linux.intel.com>
Date: Wed Jan 14 09:17:45 2026 +0800

description
===========
With the introduction of the OMR feature, the PEBS memory auxiliary info
field for load and store latency events has been restructured for DMR.

The memory auxiliary info field's bit[8] indicates whether a L2 cache
miss occurred for a memory load or store instruction. If bit[8] is 0,
it signifies no L2 cache miss, and bits[7:0] specify the exact cache data
source (up to the L2 cache level). If bit[8] is 1, bits[7:0] represent
the OMR encoding, indicating the specific L3 cache or memory region
involved in the memory access. A significant enhancement is OMR encoding
provides up to 8 fine-grained memory regions besides the cache region.

A significant enhancement for OMR encoding is the ability to provide
up to 8 fine-grained memory regions in addition to the cache region,
offering more detailed insights into memory access regions.

For detailed information on the memory auxiliary info encoding, please
refer to section 16.2 "PEBS LOAD LATENCY AND STORE LATENCY FACILITY" in
the ISE documentation.

This patch ensures that the PEBS memory auxiliary info field is correctly
interpreted and utilized in DMR.

    Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://patch.msgid.link/20260114011750.350569-3-dapeng1.mi@linux.intel.com

Signed-off-by: Michael Petlan <mpetlan@redhat.com>
2026-08-10 14:15:28 +02:00
..