Skip to contentSkip to conversation

perf jevents: Add Intel OMR MSR mappings

PATCH Applied Dapeng Mi 2 participants 2 messages Jul 8 – Jul 15 perf events

lore
Share & tools
lore

Dapeng Mi

author
#0 lore raw

PATCH 1/1 perf jevents: Add Intel OMR MSR mappings

New OMR MSRs are introduced for OMR events on DMR and NVL. Perf continues to reuse the existing offcore_rsp attribute to encode the MSR value, similar to existing OCR event handling.

Add the corresponding OMR MSR mappings in lookup_msr() so jevents can translate these events and generate the correct offcore_rsp attribute.

---
 tools/perf/pmu-events/jevents.py | 4 ++++
 1 file changed, 4 insertions(+)
tools/perf/pmu-events/jevents.py +4 -0
index 376dc2d24162..2bb51cc621b5 100755
@@ -249,6 +249,10 @@ class JsonEvent:
           0x3F6: 'ldlat=',
           0x1A6: 'offcore_rsp=',
           0x1A7: 'offcore_rsp=',
+          0x3E0: 'offcore_rsp=',
+          0x3E1: 'offcore_rsp=',
+          0x3E2: 'offcore_rsp=',
+          0x3E3: 'offcore_rsp=',
           0x3F7: 'frontend=',
       }
       return msrmap[int(num.split(',', 1)[0], 0)]
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Dapeng Mi

New OMR MSRs are introduced for OMR events on DMR and NVL. Perf continues to reuse the existing offcore_rsp attribute to encode the MSR value, similar to existing OCR event handling.

Add the corresponding OMR MSR mappings in lookup_msr() so jevents can translate these events and generate the correct offcore_rsp attribute.

[...]

Applied to perf-tools-next, thanks!

Best regards,
Namhyung