The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 00/36] perf pmu-events: Intel event/metric fixes and TMA 5.32 updates
@ 2026-12-02  8:20 Ian Rogers
  2026-12-02  8:20 ` [PATCH 01/36] perf jevents: Map cpu_lowpower unit and handle uppercase 0X hex values Ian Rogers
                   ` (35 more replies)
  0 siblings, 36 replies; 37+ messages in thread
From: Ian Rogers @ 2026-12-02  8:20 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Jiri Olsa, Adrian Hunter, James Clark, Mark Rutland,
	Alexander Shishkin
  Cc: Dapeng Mi, Zide Chen, Thomas Falcon, Chun-Tse Shao, Lalit Maganti,
	linux-perf-users, linux-kernel, Ian Rogers, Sandipan Das

This series updates jevents.py, metric.py, and the Intel x86 vendor
event/metric JSON tables across 33 models.

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


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2026-12-02  8:22 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  8:20 [PATCH 00/36] perf pmu-events: Intel event/metric fixes and TMA 5.32 updates Ian Rogers
2026-12-02  8:20 ` [PATCH 01/36] perf jevents: Map cpu_lowpower unit and handle uppercase 0X hex values Ian Rogers
2026-12-02  8:20 ` [PATCH 02/36] perf pmu-events: Fix Simplify() and Equals() bugs in metric.py Ian Rogers
2026-12-02  8:20 ` [PATCH 03/36] perf pmu-events: Remove 0 * slots simplification exception " Ian Rogers
2026-12-02  8:20 ` [PATCH 04/36] perf vendor events intel: Update alderlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:20 ` [PATCH 05/36] perf vendor events intel: Update alderlaken events and metrics Ian Rogers
2026-12-02  8:20 ` [PATCH 06/36] perf vendor events intel: Update arrowlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:20 ` [PATCH 07/36] perf vendor events intel: Update broadwell " Ian Rogers
2026-12-02  8:20 ` [PATCH 08/36] perf vendor events intel: Update broadwellde metrics to TMA 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 09/36] perf vendor events intel: Update broadwellx events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 10/36] perf vendor events intel: Update cascadelakex " Ian Rogers
2026-12-02  8:21 ` [PATCH 11/36] perf vendor events intel: Update clearwaterforest events and metrics Ian Rogers
2026-12-02  8:21 ` [PATCH 12/36] perf vendor events intel: Add diamondrapids TMA 5.32 metrics and update events Ian Rogers
2026-12-02  8:21 ` [PATCH 13/36] perf vendor events intel: Update elkhartlake events Ian Rogers
2026-12-02  8:21 ` [PATCH 14/36] perf vendor events intel: Update emeraldrapids events to 1.26 and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 15/36] perf vendor events intel: Update grandridge events and metrics Ian Rogers
2026-12-02  8:21 ` [PATCH 16/36] perf vendor events intel: Update graniterapids events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 17/36] perf vendor events intel: Update haswell " Ian Rogers
2026-12-02  8:21 ` [PATCH 18/36] perf vendor events intel: Update haswellx " Ian Rogers
2026-12-02  8:21 ` [PATCH 19/36] perf vendor events intel: Update icelake " Ian Rogers
2026-12-02  8:21 ` [PATCH 20/36] perf vendor events intel: Update icelakex " Ian Rogers
2026-12-02  8:21 ` [PATCH 21/36] perf vendor events intel: Update ivybridge metrics to TMA 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 22/36] perf vendor events intel: Update ivytown events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 23/36] perf vendor events intel: Update jaketown " Ian Rogers
2026-12-02  8:21 ` [PATCH 24/36] perf vendor events intel: Update knightslanding events Ian Rogers
2026-12-02  8:21 ` [PATCH 25/36] perf vendor events intel: Update lunarlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 26/36] perf vendor events intel: Update meteorlake " Ian Rogers
2026-12-02  8:21 ` [PATCH 27/36] perf vendor events intel: Update novalake events Ian Rogers
2026-12-02  8:21 ` [PATCH 28/36] perf vendor events intel: Update pantherlake events Ian Rogers
2026-12-02  8:21 ` [PATCH 29/36] perf vendor events intel: Update rocketlake events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 30/36] perf vendor events intel: Update sandybridge metrics to TMA 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 31/36] perf vendor events intel: Update sapphirerapids events to 1.41 and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 32/36] perf vendor events intel: Update sierraforest events and metrics Ian Rogers
2026-12-02  8:21 ` [PATCH 33/36] perf vendor events intel: Update skylake events and TMA metrics to 5.32 Ian Rogers
2026-12-02  8:21 ` [PATCH 34/36] perf vendor events intel: Update skylakex " Ian Rogers
2026-12-02  8:21 ` [PATCH 35/36] perf vendor events intel: Update snowridgex events Ian Rogers
2026-12-02  8:21 ` [PATCH 36/36] perf vendor events intel: Update tigerlake events and TMA metrics to 5.32 Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox