From: Ian Rogers <irogers@google.com>
To: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@linaro.org>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>,
Zide Chen <zide.chen@intel.com>,
Thomas Falcon <thomas.falcon@intel.com>,
Chun-Tse Shao <ctshao@google.com>,
Lalit Maganti <lalitmaganti@gmail.com>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
Ian Rogers <irogers@google.com>
Subject: [PATCH v2 15/36] perf vendor events intel: Update grandridge events and metrics
Date: Wed, 2 Dec 2026 10:40:20 -0800 [thread overview]
Message-ID: <611524ef80d21b6eeea73e1e2ffe6528bb484929.1796231665.git.irogers@google.com> (raw)
In-Reply-To: <cover.1796231664.git.irogers@google.com>
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@google.com>
---
.../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
next prev parent reply other threads:[~2026-12-02 18:41 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 18:40 [PATCH v2 00/36] perf pmu-events: Intel event/metric fixes and TMA 5.32 updates Ian Rogers
2026-12-02 18:40 ` [PATCH v2 01/36] perf jevents: Map cpu_lowpower unit and handle uppercase 0X hex values Ian Rogers
2026-12-02 18:40 ` [PATCH v2 02/36] perf pmu-events: Fix Simplify() and Equals() bugs in metric.py Ian Rogers
2026-12-02 18:40 ` [PATCH v2 03/36] perf pmu-events: Remove 0 * slots simplification exception " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 04/36] perf vendor events intel: Update alderlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 05/36] perf vendor events intel: Update alderlaken events and metrics Ian Rogers
2026-12-02 18:40 ` [PATCH v2 06/36] perf vendor events intel: Update arrowlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 07/36] perf vendor events intel: Update broadwell " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 08/36] perf vendor events intel: Update broadwellde metrics to TMA 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 09/36] perf vendor events intel: Update broadwellx events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 10/36] perf vendor events intel: Update cascadelakex " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 11/36] perf vendor events intel: Update clearwaterforest events and metrics Ian Rogers
2026-12-02 18:40 ` [PATCH v2 12/36] perf vendor events intel: Add diamondrapids TMA 5.32 metrics and update events Ian Rogers
2026-12-02 18:40 ` [PATCH v2 13/36] perf vendor events intel: Update elkhartlake events Ian Rogers
2026-12-02 18:40 ` [PATCH v2 14/36] perf vendor events intel: Update emeraldrapids events to 1.26 and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` Ian Rogers [this message]
2026-12-02 18:40 ` [PATCH v2 16/36] perf vendor events intel: Update graniterapids events " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 17/36] perf vendor events intel: Update haswell " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 18/36] perf vendor events intel: Update haswellx " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 19/36] perf vendor events intel: Update icelake " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 20/36] perf vendor events intel: Update icelakex " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 21/36] perf vendor events intel: Update ivybridge metrics to TMA 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 22/36] perf vendor events intel: Update ivytown events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 23/36] perf vendor events intel: Update jaketown " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 24/36] perf vendor events intel: Update knightslanding events Ian Rogers
2026-12-02 18:40 ` [PATCH v2 25/36] perf vendor events intel: Update lunarlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 26/36] perf vendor events intel: Update meteorlake " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 27/36] perf vendor events intel: Update novalake events Ian Rogers
2026-12-02 18:40 ` [PATCH v2 28/36] perf vendor events intel: Update pantherlake events Ian Rogers
2026-12-02 18:40 ` [PATCH v2 29/36] perf vendor events intel: Update rocketlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 30/36] perf vendor events intel: Update sandybridge metrics to TMA 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 31/36] perf vendor events intel: Update sapphirerapids events to 1.41 and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 32/36] perf vendor events intel: Update sierraforest events and metrics Ian Rogers
2026-12-02 18:40 ` [PATCH v2 33/36] perf vendor events intel: Update skylake events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:40 ` [PATCH v2 34/36] perf vendor events intel: Update skylakex " Ian Rogers
2026-12-02 18:40 ` [PATCH v2 35/36] perf vendor events intel: Update snowridgex events Ian Rogers
2026-12-02 18:40 ` [PATCH v2 36/36] perf vendor events intel: Update tigerlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02 18:51 ` [PATCH v2 00/36] perf pmu-events: Intel event/metric fixes and TMA 5.32 updates sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=611524ef80d21b6eeea73e1e2ffe6528bb484929.1796231665.git.irogers@google.com \
--to=irogers@google.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=ctshao@google.com \
--cc=dapeng1.mi@linux.intel.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=lalitmaganti@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=thomas.falcon@intel.com \
--cc=zide.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox