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 00/36] perf pmu-events: Intel event/metric fixes and TMA 5.32 updates
Date: Wed, 2 Dec 2026 10:40:05 -0800 [thread overview]
Message-ID: <cover.1796231664.git.irogers@google.com> (raw)
This series updates jevents.py, metric.py, and the Intel x86 vendor
event/metric JSON tables across 33 models.
Changes in v2 (v1: https://lore.kernel.org/linux-perf-users/cover.1796199085.git.irogers@google.com/):
- Add Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> to patch 1.
- Fix Fixes: tags on broadwellx (patch 9), haswellx (patch 18),
ivytown (patch 22), and jaketown (patch 23) per Sashiko AI review to
cite the commits that stripped ExtSel and QPI_*_BANDWIDTH_TX rather
than the earlier commits that added them.
- Add matching Fixes: tags on cascadelakex (patch 10) and skylakex
(patch 34) for the commits that dropped UPI_DATA_BANDWIDTH_TX.
- No code or JSON changes from v1.
Patches 1-3 fix pmu-events tooling bugs and clean up obsolete logic:
- Map "cpu_lowpower" in jevents.py (matching arch/x86/events/intel/core.c)
and accept uppercase "0X" hex prefixes in is_zero()/canonicalize_value().
- Fix constant folding and Function.Equals() bugs in metric.py and add
unit tests.
- Remove the obsolete "0 * slots" simplification exception in metric.py
now that parse-events.c automatically injects slots for Intel topdown
metric events (commit 8dcd27b1b866).
Patches 4-36 re-generate Intel vendor events and metrics per model using
the updated intel/perfmon create_perf_json.py scripts (pushed to
https://github.com/captain5050/perfmon/tree/create-perf-json-fixes):
- Update TMA metrics to v5.32 (TMA_Metrics-full.csv v5.3-full /
5.320-full) across 24 models and add Diamond Rapids TMA/cstate metrics.
- Bring in upstream event releases for Emerald Rapids (v1.26) and
Sapphire Rapids (v1.41).
- Align uncore PMU unit names and event encodings with
arch/x86/events/intel/ drivers (HAC_CBOX, MDF_SBO, DMR cbo and CXLCM
port_en=0xf, KNL iMC, QPI ExtSel, lowercase 0x hex normalization,
mixed-case QPI/UPI bandwidth events, zero-valued PortMask/FCMask
cleanup, and counter.json count initialization).
- Align cstate metrics with arch/x86/events/intel/cstate.c (including
cstate_module), escape '=' in hybrid msr@tsc\,cpu\=<unit>@ expressions,
adopt aggr_nr() for uncore frequency/occupancy metrics, drop bogus
"Available PDIST counters" text on non-precise events, filter TMA
Related metrics / Sample-with references to available entries, and
prune unused metric groups from metricgroups.json.
Tested with metric_test.py, mypy, checkpatch.pl, and `perf test` as root
on an Intel Core i7-14700 (GenuineIntel-6-B7-1): all 104 PMU JSON event
tests, x86 topdown tests, jevents unknown-key check, perf all PMU test,
perf all metricgroups test, perf all metrics test, and perf metrics
value validation passed.
Ian Rogers (36):
perf jevents: Map cpu_lowpower unit and handle uppercase 0X hex values
perf pmu-events: Fix Simplify() and Equals() bugs in metric.py
perf pmu-events: Remove 0 * slots simplification exception in
metric.py
perf vendor events intel: Update alderlake events and TMA metrics to
5.32
perf vendor events intel: Update alderlaken events and metrics
perf vendor events intel: Update arrowlake events and TMA metrics to
5.32
perf vendor events intel: Update broadwell events and TMA metrics to
5.32
perf vendor events intel: Update broadwellde metrics to TMA 5.32
perf vendor events intel: Update broadwellx events and TMA metrics to
5.32
perf vendor events intel: Update cascadelakex events and TMA metrics
to 5.32
perf vendor events intel: Update clearwaterforest events and metrics
perf vendor events intel: Add diamondrapids TMA 5.32 metrics and
update events
perf vendor events intel: Update elkhartlake events
perf vendor events intel: Update emeraldrapids events to 1.26 and TMA
metrics to 5.32
perf vendor events intel: Update grandridge events and metrics
perf vendor events intel: Update graniterapids events and TMA metrics
to 5.32
perf vendor events intel: Update haswell events and TMA metrics to
5.32
perf vendor events intel: Update haswellx events and TMA metrics to
5.32
perf vendor events intel: Update icelake events and TMA metrics to
5.32
perf vendor events intel: Update icelakex events and TMA metrics to
5.32
perf vendor events intel: Update ivybridge metrics to TMA 5.32
perf vendor events intel: Update ivytown events and TMA metrics to
5.32
perf vendor events intel: Update jaketown events and TMA metrics to
5.32
perf vendor events intel: Update knightslanding events
perf vendor events intel: Update lunarlake events and TMA metrics to
5.32
perf vendor events intel: Update meteorlake events and TMA metrics to
5.32
perf vendor events intel: Update novalake events
perf vendor events intel: Update pantherlake events
perf vendor events intel: Update rocketlake events and TMA metrics to
5.32
perf vendor events intel: Update sandybridge metrics to TMA 5.32
perf vendor events intel: Update sapphirerapids events to 1.41 and TMA
metrics to 5.32
perf vendor events intel: Update sierraforest events and metrics
perf vendor events intel: Update skylake events and TMA metrics to
5.32
perf vendor events intel: Update skylakex events and TMA metrics to
5.32
perf vendor events intel: Update snowridgex events
perf vendor events intel: Update tigerlake events and TMA metrics to
5.32
.../arch/x86/alderlake/adl-metrics.json | 62 +-
.../pmu-events/arch/x86/alderlake/cache.json | 29 -
.../pmu-events/arch/x86/alderlake/memory.json | 13 -
.../arch/x86/alderlake/metricgroups.json | 5 -
.../pmu-events/arch/x86/alderlake/other.json | 4 -
.../pmu-events/arch/x86/alderlaken/cache.json | 21 -
.../arch/x86/alderlaken/memory.json | 10 -
.../arch/x86/alderlaken/metricgroups.json | 1 -
.../pmu-events/arch/x86/alderlaken/other.json | 3 -
.../arch/x86/arrowlake/arl-metrics.json | 80 +-
.../pmu-events/arch/x86/arrowlake/cache.json | 8 -
.../pmu-events/arch/x86/arrowlake/memory.json | 3 -
.../arch/x86/arrowlake/metricgroups.json | 8 -
.../pmu-events/arch/x86/arrowlake/other.json | 4 -
.../arch/x86/arrowlake/uncore-cache.json | 4 +-
.../arch/x86/broadwell/bdw-metrics.json | 53 +-
.../arch/x86/broadwell/counter.json | 2 +-
.../arch/x86/broadwell/metricgroups.json | 14 -
.../arch/x86/broadwellde/bdwde-metrics.json | 105 +-
.../arch/x86/broadwellde/metricgroups.json | 14 -
.../arch/x86/broadwellx/bdx-metrics.json | 59 +-
.../arch/x86/broadwellx/metricgroups.json | 12 -
.../arch/x86/broadwellx/uncore-cache.json | 2 +-
.../x86/broadwellx/uncore-interconnect.json | 140 ++
.../arch/x86/cascadelakex/clx-metrics.json | 68 +-
.../arch/x86/cascadelakex/metricgroups.json | 3 -
.../arch/x86/cascadelakex/uncore-cache.json | 24 +-
.../x86/cascadelakex/uncore-interconnect.json | 11 +
.../arch/x86/cascadelakex/uncore-io.json | 2 -
.../arch/x86/clearwaterforest/cache.json | 2 -
.../arch/x86/clearwaterforest/counter.json | 14 +-
.../x86/clearwaterforest/cwf-metrics.json | 15 +-
.../arch/x86/clearwaterforest/memory.json | 5 -
.../x86/clearwaterforest/uncore-cache.json | 4 -
.../arch/x86/clearwaterforest/uncore-cxl.json | 1 -
.../clearwaterforest/uncore-interconnect.json | 2 +-
.../arch/x86/clearwaterforest/uncore-io.json | 26 -
.../arch/x86/diamondrapids/counter.json | 2 +-
.../arch/x86/diamondrapids/dmr-metrics.json | 2166 +++++++++++++++++
.../arch/x86/diamondrapids/memory.json | 3 -
.../arch/x86/diamondrapids/metricgroups.json | 142 ++
.../arch/x86/diamondrapids/other.json | 46 -
.../arch/x86/diamondrapids/uncore-cache.json | 58 +-
.../arch/x86/diamondrapids/uncore-cxl.json | 6 +-
.../arch/x86/elkhartlake/cache.json | 261 +-
.../arch/x86/elkhartlake/memory.json | 171 +-
.../arch/x86/elkhartlake/other.json | 30 +-
.../arch/x86/emeraldrapids/cache.json | 38 -
.../arch/x86/emeraldrapids/emr-metrics.json | 75 +-
.../arch/x86/emeraldrapids/memory.json | 29 +-
.../arch/x86/emeraldrapids/metricgroups.json | 3 -
.../arch/x86/emeraldrapids/other.json | 1 -
.../arch/x86/emeraldrapids/uncore-cache.json | 51 +-
.../emeraldrapids/uncore-interconnect.json | 62 +-
.../arch/x86/emeraldrapids/uncore-io.json | 70 +-
.../arch/x86/emeraldrapids/uncore-memory.json | 90 -
.../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 -
.../arch/x86/graniterapids/cache.json | 35 -
.../arch/x86/graniterapids/counter.json | 12 +-
.../arch/x86/graniterapids/gnr-metrics.json | 69 +-
.../arch/x86/graniterapids/memory.json | 19 -
.../arch/x86/graniterapids/metricgroups.json | 3 -
.../arch/x86/graniterapids/other.json | 1 -
.../arch/x86/graniterapids/uncore-cache.json | 4 -
.../arch/x86/graniterapids/uncore-cxl.json | 1 -
.../graniterapids/uncore-interconnect.json | 74 +-
.../arch/x86/graniterapids/uncore-io.json | 26 -
.../pmu-events/arch/x86/haswell/counter.json | 2 +-
.../arch/x86/haswell/hsw-metrics.json | 45 +-
.../arch/x86/haswell/metricgroups.json | 21 -
.../arch/x86/haswellx/hsx-metrics.json | 53 +-
.../arch/x86/haswellx/metricgroups.json | 19 -
.../arch/x86/haswellx/uncore-cache.json | 2 +-
.../x86/haswellx/uncore-interconnect.json | 140 ++
.../pmu-events/arch/x86/icelake/counter.json | 2 +-
.../arch/x86/icelake/icl-metrics.json | 45 +-
.../arch/x86/icelake/metricgroups.json | 5 -
.../pmu-events/arch/x86/icelakex/counter.json | 2 +-
.../arch/x86/icelakex/icx-metrics.json | 59 +-
.../arch/x86/icelakex/metricgroups.json | 3 -
.../arch/x86/ivybridge/ivb-metrics.json | 53 +-
.../arch/x86/ivybridge/metricgroups.json | 17 -
.../arch/x86/ivytown/ivt-metrics.json | 67 +-
.../arch/x86/ivytown/metricgroups.json | 15 -
.../arch/x86/ivytown/uncore-interconnect.json | 169 ++
.../arch/x86/jaketown/jkt-metrics.json | 38 +-
.../arch/x86/jaketown/metricgroups.json | 37 +-
.../x86/jaketown/uncore-interconnect.json | 48 +
.../arch/x86/knightslanding/counter.json | 4 +-
.../x86/knightslanding/uncore-memory.json | 8 +-
.../pmu-events/arch/x86/lunarlake/cache.json | 15 -
.../arch/x86/lunarlake/lnl-metrics.json | 67 +-
.../pmu-events/arch/x86/lunarlake/memory.json | 9 -
.../arch/x86/lunarlake/metricgroups.json | 8 -
.../pmu-events/arch/x86/lunarlake/other.json | 5 -
tools/perf/pmu-events/arch/x86/mapfile.csv | 4 +-
.../pmu-events/arch/x86/meteorlake/cache.json | 21 -
.../arch/x86/meteorlake/memory.json | 9 -
.../arch/x86/meteorlake/metricgroups.json | 5 -
.../arch/x86/meteorlake/mtl-metrics.json | 64 +-
.../pmu-events/arch/x86/meteorlake/other.json | 4 -
.../arch/x86/meteorlake/uncore-cache.json | 4 +-
.../pmu-events/arch/x86/novalake/counter.json | 2 +-
.../pmu-events/arch/x86/novalake/memory.json | 3 -
.../pmu-events/arch/x86/novalake/other.json | 14 -
.../arch/x86/pantherlake/cache.json | 10 -
.../arch/x86/pantherlake/counter.json | 2 +-
.../arch/x86/pantherlake/memory.json | 6 -
.../arch/x86/pantherlake/other.json | 1 -
.../arch/x86/rocketlake/counter.json | 2 +-
.../arch/x86/rocketlake/metricgroups.json | 5 -
.../arch/x86/rocketlake/rkl-metrics.json | 45 +-
.../arch/x86/sandybridge/metricgroups.json | 37 +-
.../arch/x86/sandybridge/snb-metrics.json | 32 +-
.../arch/x86/sapphirerapids/cache.json | 43 -
.../arch/x86/sapphirerapids/memory.json | 29 +-
.../arch/x86/sapphirerapids/metricgroups.json | 3 -
.../arch/x86/sapphirerapids/other.json | 1 -
.../arch/x86/sapphirerapids/spr-metrics.json | 71 +-
.../arch/x86/sapphirerapids/uncore-cache.json | 39 +-
.../sapphirerapids/uncore-interconnect.json | 62 +-
.../arch/x86/sapphirerapids/uncore-io.json | 70 +-
.../x86/sapphirerapids/uncore-memory.json | 90 -
.../arch/x86/sierraforest/cache.json | 5 -
.../arch/x86/sierraforest/memory.json | 4 -
.../arch/x86/sierraforest/other.json | 1 -
.../arch/x86/sierraforest/srf-metrics.json | 41 +-
.../arch/x86/sierraforest/uncore-cache.json | 4 -
.../arch/x86/sierraforest/uncore-cxl.json | 1 -
.../x86/sierraforest/uncore-interconnect.json | 2 +-
.../arch/x86/sierraforest/uncore-io.json | 26 -
.../pmu-events/arch/x86/skylake/counter.json | 2 +-
.../arch/x86/skylake/metricgroups.json | 7 -
.../arch/x86/skylake/skl-metrics.json | 54 +-
.../arch/x86/skylakex/metricgroups.json | 4 -
.../arch/x86/skylakex/skx-metrics.json | 58 +-
.../arch/x86/skylakex/uncore-cache.json | 24 +-
.../x86/skylakex/uncore-interconnect.json | 11 +
.../arch/x86/skylakex/uncore-io.json | 2 -
.../pmu-events/arch/x86/snowridgex/cache.json | 261 +-
.../arch/x86/snowridgex/counter.json | 2 +-
.../arch/x86/snowridgex/memory.json | 171 +-
.../pmu-events/arch/x86/snowridgex/other.json | 30 +-
.../arch/x86/snowridgex/uncore-io.json | 2 -
.../arch/x86/tigerlake/counter.json | 2 +-
.../arch/x86/tigerlake/metricgroups.json | 5 -
.../arch/x86/tigerlake/tgl-metrics.json | 45 +-
tools/perf/pmu-events/jevents.py | 5 +-
tools/perf/pmu-events/metric.py | 55 +-
tools/perf/pmu-events/metric_test.py | 43 +-
155 files changed, 4261 insertions(+), 2690 deletions(-)
create mode 100644 tools/perf/pmu-events/arch/x86/diamondrapids/dmr-metrics.json
create mode 100644 tools/perf/pmu-events/arch/x86/diamondrapids/metricgroups.json
base-commit: 419442c00c667d33e27db4fef9733fa966e6a149
--
2.56.1.915.g69d5ec7298-goog
next reply other threads:[~2026-12-02 18:40 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 18:40 Ian Rogers [this message]
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 ` [PATCH v2 15/36] perf vendor events intel: Update grandridge events and metrics Ian Rogers
2026-12-02 18:40 ` [PATCH v2 16/36] perf vendor events intel: Update graniterapids events and TMA metrics to 5.32 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=cover.1796231664.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.