[PATCH 15/36] perf vendor events intel: Update grandridge events and metrics
From: Ian Rogers
Date: Wed Dec 02 2026 - 03:22:15 EST
Re-generate grandridge events and metrics with create_perf_json.py:
- Drop bogus Available PDIST counters text from non-precise events.
- Drop zero-valued PortMask/FCMask fields from uncore events.
- Align cstate metrics with intel/cstate.c and add C6_Module_Residency.
- Use aggr_nr() in uncore frequency/occupancy metric expressions.
Fixes: b52c4123a5df ("perf vendor events: Update GrandRidge events/metrics")
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
.../pmu-events/arch/x86/grandridge/cache.json | 5 ---
.../arch/x86/grandridge/grr-metrics.json | 43 ++-----------------
.../arch/x86/grandridge/memory.json | 2 -
.../pmu-events/arch/x86/grandridge/other.json | 1 -
.../arch/x86/grandridge/uncore-cache.json | 3 --
.../arch/x86/grandridge/uncore-io.json | 13 ------
6 files changed, 4 insertions(+), 63 deletions(-)
diff --git a/tools/perf/pmu-events/arch/x86/grandridge/cache.json b/tools/perf/pmu-events/arch/x86/grandridge/cache.json
index 4c7727df33e4..23b7af16df45 100644
--- a/tools/perf/pmu-events/arch/x86/grandridge/cache.json
+++ b/tools/perf/pmu-events/arch/x86/grandridge/cache.json
@@ -554,7 +554,6 @@
"EventName": "OCR.DEMAND_DATA_RD.ANY_RESPONSE",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x10001",
- "PublicDescription": "Counts demand data reads that have any type of response. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
},
@@ -565,7 +564,6 @@
"EventName": "OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x10003C0001",
- "PublicDescription": "Counts demand data reads that were supplied by the L3 cache where a snoop was sent, the snoop hit, and modified data was forwarded. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
},
@@ -576,7 +574,6 @@
"EventName": "OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x8003C0001",
- "PublicDescription": "Counts demand data reads that were supplied by the L3 cache where a snoop was sent, the snoop hit, and non-modified data was forwarded. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
},
@@ -587,7 +584,6 @@
"EventName": "OCR.DEMAND_RFO.ANY_RESPONSE",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x10002",
- "PublicDescription": "Counts demand reads for ownership (RFO) and software prefetches for exclusive ownership (PREFETCHW) that have any type of response. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
},
@@ -598,7 +594,6 @@
"EventName": "OCR.DEMAND_RFO.L3_HIT.SNOOP_HITM",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x10003C0002",
- "PublicDescription": "Counts demand reads for ownership (RFO) and software prefetches for exclusive ownership (PREFETCHW) that were supplied by the L3 cache where a snoop was sent, the snoop hit, and modified data was forwarded. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
},
diff --git a/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json b/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json
index a0d637a24c1b..a24f48f2c3d0 100644
--- a/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json
+++ b/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json
@@ -1,11 +1,4 @@
[
- {
- "BriefDescription": "C10 residency percent per package",
- "MetricExpr": "cstate_pkg@c10\\-residency@ / msr@tsc@",
- "MetricGroup": "Power",
- "MetricName": "C10_Pkg_Residency",
- "ScaleUnit": "100%"
- },
{
"BriefDescription": "C1 residency percent per core",
"MetricExpr": "cstate_core@c1\\-residency@ / msr@tsc@",
@@ -13,20 +6,6 @@
"MetricName": "C1_Core_Residency",
"ScaleUnit": "100%"
},
- {
- "BriefDescription": "C2 residency percent per package",
- "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@",
- "MetricGroup": "Power",
- "MetricName": "C2_Pkg_Residency",
- "ScaleUnit": "100%"
- },
- {
- "BriefDescription": "C3 residency percent per package",
- "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@",
- "MetricGroup": "Power",
- "MetricName": "C3_Pkg_Residency",
- "ScaleUnit": "100%"
- },
{
"BriefDescription": "C6 residency percent per core",
"MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@",
@@ -35,24 +14,10 @@
"ScaleUnit": "100%"
},
{
- "BriefDescription": "C6 residency percent per package",
- "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@",
- "MetricGroup": "Power",
- "MetricName": "C6_Pkg_Residency",
- "ScaleUnit": "100%"
- },
- {
- "BriefDescription": "C7 residency percent per core",
- "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@",
- "MetricGroup": "Power",
- "MetricName": "C7_Core_Residency",
- "ScaleUnit": "100%"
- },
- {
- "BriefDescription": "C8 residency percent per package",
- "MetricExpr": "cstate_pkg@c8\\-residency@ / msr@tsc@",
+ "BriefDescription": "C6 residency percent per module",
+ "MetricExpr": "cstate_module@c6\\-residency@ / msr@tsc@",
"MetricGroup": "Power",
- "MetricName": "C8_Pkg_Residency",
+ "MetricName": "C6_Module_Residency",
"ScaleUnit": "100%"
},
{
@@ -782,7 +747,7 @@
},
{
"BriefDescription": "Uncore operating frequency in GHz",
- "MetricExpr": "UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_CLOCKTICKS) * #num_packages) / 1e9 / duration_time",
+ "MetricExpr": "UNC_CHA_CLOCKTICKS / aggr_nr(UNC_CHA_CLOCKTICKS) / 1e9 / duration_time",
"MetricName": "uncore_frequency",
"ScaleUnit": "1GHz"
}
diff --git a/tools/perf/pmu-events/arch/x86/grandridge/memory.json b/tools/perf/pmu-events/arch/x86/grandridge/memory.json
index 3cbd86976e51..6c957b028c2c 100644
--- a/tools/perf/pmu-events/arch/x86/grandridge/memory.json
+++ b/tools/perf/pmu-events/arch/x86/grandridge/memory.json
@@ -136,7 +136,6 @@
"EventName": "OCR.DEMAND_DATA_RD.L3_MISS",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x3FBFC00001",
- "PublicDescription": "Counts demand data reads that were not supplied by the L3 cache. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
},
@@ -147,7 +146,6 @@
"EventName": "OCR.DEMAND_RFO.L3_MISS",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x3FBFC00002",
- "PublicDescription": "Counts demand reads for ownership (RFO) and software prefetches for exclusive ownership (PREFETCHW) that were not supplied by the L3 cache. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
}
diff --git a/tools/perf/pmu-events/arch/x86/grandridge/other.json b/tools/perf/pmu-events/arch/x86/grandridge/other.json
index ea34103a8292..daa16030d493 100644
--- a/tools/perf/pmu-events/arch/x86/grandridge/other.json
+++ b/tools/perf/pmu-events/arch/x86/grandridge/other.json
@@ -15,7 +15,6 @@
"EventName": "OCR.STREAMING_WR.ANY_RESPONSE",
"MSRIndex": "0x1a6,0x1a7",
"MSRValue": "0x10800",
- "PublicDescription": "Counts streaming stores that have any type of response. Available PDIST counters: 0",
"SampleAfterValue": "100003",
"UMask": "0x1"
}
diff --git a/tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json b/tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json
index b89ab6e5cfb5..7a42f1f020fd 100644
--- a/tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json
+++ b/tools/perf/pmu-events/arch/x86/grandridge/uncore-cache.json
@@ -5,7 +5,6 @@
"EventCode": "0x01",
"EventName": "UNC_CHACMS_CLOCKTICKS",
"PerPkg": "1",
- "PortMask": "0x000",
"Unit": "CHACMS"
},
{
@@ -15,7 +14,6 @@
"EventName": "UNC_CHACMS_RING_SRC_THRTL",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"Unit": "CHACMS"
},
{
@@ -33,7 +31,6 @@
"EventCode": "0x59",
"EventName": "UNC_CHA_DISTRESS_ASSERTED.DPT_ANY",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x3",
"Unit": "CHA"
},
diff --git a/tools/perf/pmu-events/arch/x86/grandridge/uncore-io.json b/tools/perf/pmu-events/arch/x86/grandridge/uncore-io.json
index 1a495a89ed57..63b9a58e28d5 100644
--- a/tools/perf/pmu-events/arch/x86/grandridge/uncore-io.json
+++ b/tools/perf/pmu-events/arch/x86/grandridge/uncore-io.json
@@ -5,7 +5,6 @@
"EventCode": "0x01",
"EventName": "UNC_IIO_CLOCKTICKS",
"PerPkg": "1",
- "PortMask": "0x000",
"Unit": "IIO"
},
{
@@ -709,7 +708,6 @@
"EventName": "UNC_IIO_IOMMU0.1G_HITS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x10",
"Unit": "IIO"
},
@@ -720,7 +718,6 @@
"EventName": "UNC_IIO_IOMMU0.2M_HITS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x8",
"Unit": "IIO"
},
@@ -731,7 +728,6 @@
"EventName": "UNC_IIO_IOMMU0.4K_HITS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x4",
"Unit": "IIO"
},
@@ -742,7 +738,6 @@
"EventName": "UNC_IIO_IOMMU0.CTXT_CACHE_HITS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x80",
"Unit": "IIO"
},
@@ -753,7 +748,6 @@
"EventName": "UNC_IIO_IOMMU0.CTXT_CACHE_LOOKUPS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x40",
"Unit": "IIO"
},
@@ -764,7 +758,6 @@
"EventName": "UNC_IIO_IOMMU0.FIRST_LOOKUPS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x1",
"Unit": "IIO"
},
@@ -775,7 +768,6 @@
"EventName": "UNC_IIO_IOMMU0.MISSES",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x20",
"Unit": "IIO"
},
@@ -786,7 +778,6 @@
"EventName": "UNC_IIO_IOMMU1.NUM_MEM_ACCESSES",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0xc0",
"Unit": "IIO"
},
@@ -797,7 +788,6 @@
"EventName": "UNC_IIO_IOMMU1.SLPWC_1G_HITS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x4",
"Unit": "IIO"
},
@@ -808,7 +798,6 @@
"EventName": "UNC_IIO_IOMMU1.SLPWC_256T_HITS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x10",
"Unit": "IIO"
},
@@ -819,7 +808,6 @@
"EventName": "UNC_IIO_IOMMU1.SLPWC_512G_HITS",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"UMask": "0x8",
"Unit": "IIO"
},
@@ -925,7 +913,6 @@
"EventName": "UNC_IIO_PWT_OCCUPANCY",
"Experimental": "1",
"PerPkg": "1",
- "PortMask": "0x000",
"Unit": "IIO"
},
{
--
2.56.1.915.g69d5ec7298-goog