[PATCH v2 23/26] perf vendor events intel: Fix lunarlake umask encoding.
From: Ian Rogers
Date: Thu Sep 24 2026 - 13:55:30 EST
Fix UMaskExt that was wrongly encoded when the UMask was 0.
Fixes: 23878069de30 ("perf vendor events: Update/add Lunarlake events/metrics")
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
tools/perf/pmu-events/arch/x86/lunarlake/cache.json | 3 +++
tools/perf/pmu-events/arch/x86/lunarlake/pipeline.json | 2 ++
2 files changed, 5 insertions(+)
diff --git a/tools/perf/pmu-events/arch/x86/lunarlake/cache.json b/tools/perf/pmu-events/arch/x86/lunarlake/cache.json
index 5b350233a5e1..c77040e87639 100644
--- a/tools/perf/pmu-events/arch/x86/lunarlake/cache.json
+++ b/tools/perf/pmu-events/arch/x86/lunarlake/cache.json
@@ -848,6 +848,7 @@
"EventName": "MEM_LOAD_L3_MISS_RETIRED.MEMSIDE_CACHE",
"PublicDescription": "Retired load instructions which data source is memory side cache. Available PDIST counters: 0,1",
"SampleAfterValue": "100007",
+ "UMask": "0x100",
"Unit": "cpu_core"
},
{
@@ -901,6 +902,7 @@
"EventName": "MEM_LOAD_RETIRED.L1_HIT_L1",
"PublicDescription": "Counts retired load instructions with at least one uop that hit in the Level 1 of the L1 data cache. Available PDIST counters: 0,1",
"SampleAfterValue": "1000003",
+ "UMask": "0x100",
"Unit": "cpu_core"
},
{
@@ -1093,6 +1095,7 @@
"EventCode": "0x44",
"EventName": "MEM_STORE_RETIRED.MEMSIDE_CACHE",
"SampleAfterValue": "100021",
+ "UMask": "0x400",
"Unit": "cpu_core"
},
{
diff --git a/tools/perf/pmu-events/arch/x86/lunarlake/pipeline.json b/tools/perf/pmu-events/arch/x86/lunarlake/pipeline.json
index 8be3ea336bb8..5d8bd972d463 100644
--- a/tools/perf/pmu-events/arch/x86/lunarlake/pipeline.json
+++ b/tools/perf/pmu-events/arch/x86/lunarlake/pipeline.json
@@ -190,6 +190,7 @@
"EventName": "BR_INST_RETIRED.COND_TAKEN_FWD",
"PublicDescription": "Counts taken forward conditional branch instructions retired. Available PDIST counters: 0,1",
"SampleAfterValue": "400009",
+ "UMask": "0x100",
"Unit": "cpu_core"
},
{
@@ -474,6 +475,7 @@
"EventName": "BR_MISP_RETIRED.COND_TAKEN_FWD",
"PublicDescription": "Counts taken forward conditional mispredicted branch instructions retired. Available PDIST counters: 0,1",
"SampleAfterValue": "400009",
+ "UMask": "0x100",
"Unit": "cpu_core"
},
{
--
2.56.0.rc1.315.gc6ed9934b7-goog