perf pmu-events: Intel event/metric fixes and TMA 5.32 updates
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest36 patches 1 replyIn review
- v136 patches 1 replySuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/36 | perf jevents: Map cpu_lowpower unit and handle uppercase 0X hex valuestools/ | +3 | 0 replies | |
| 2/36 | perf pmu-events: Fix Simplify() and Equals() bugs in metric.pytools/ tools/ | +80 | 0 replies | |
| 3/36 | perf pmu-events: Remove 0 * slots simplification exception in metric.pytools/ tools/ | +1 | 0 replies | |
| 4/36 | perf vendor events intel: Update alderlake events and TMA metrics to 5.32tools/ tools/ tools/ +2 more | +34 | 0 replies | |
| 5/36 | perf vendor events intel: Update alderlaken events and metricstools/ tools/ tools/ +1 more | +0 | 0 replies | |
| 6/36 | perf vendor events intel: Update arrowlake events and TMA metrics to 5.32tools/ tools/ tools/ +3 more | +48 | 0 replies | |
| 7/36 | perf vendor events intel: Update broadwell events and TMA metrics to 5.32tools/ tools/ tools/ | +27 | 0 replies | |
| 8/36 | perf vendor events intel: Update broadwellde metrics to TMA 5.32tools/ tools/ | +52 | 0 replies | |
| 9/36 | perf vendor events intel: Update broadwellx events and TMA metrics to 5.32tools/ tools/ tools/ +1 more | +173 | 0 replies | |
| 10/36 | perf vendor events intel: Update cascadelakex events and TMA metrics to 5.32tools/ tools/ tools/ +2 more | +59 | 0 replies | |
| 11/36 | perf vendor events intel: Update clearwaterforest events and metricstools/ tools/ tools/ +5 more | +19 | 0 replies | |
| 12/36 | perf vendor events intel: Add diamondrapids TMA 5.32 metrics and update eventstools/ tools/ tools/ +4 more | +2342 | 0 replies | |
| 13/36 | perf vendor events intel: Update elkhartlake eventstools/ tools/ tools/ | +154 | 0 replies | |
| 14/36 | perf vendor events intel: Update emeraldrapids events to 1.26 and TMA metrics to 5.32tools/ tools/ tools/ +7 more | +121 | 0 replies | |
| 15/36 | perf vendor events intel: Update grandridge events and metricstools/ tools/ tools/ +3 more | +4 | 0 replies | |
| 16/36 | perf vendor events intel: Update graniterapids events and TMA metrics to 5.32tools/ tools/ tools/ +7 more | +80 | 0 replies | |
| 17/36 | perf vendor events intel: Update haswell events and TMA metrics to 5.32tools/ tools/ tools/ | +23 | 0 replies | |
| 18/36 | perf vendor events intel: Update haswellx events and TMA metrics to 5.32tools/ tools/ tools/ +1 more | +170 | 0 replies | |
| 19/36 | perf vendor events intel: Update icelake events and TMA metrics to 5.32tools/ tools/ tools/ | +23 | 0 replies | |
| 20/36 | perf vendor events intel: Update icelakex events and TMA metrics to 5.32tools/ tools/ tools/ | +33 | 0 replies | |
| 21/36 | perf vendor events intel: Update ivybridge metrics to TMA 5.32tools/ tools/ | +26 | 0 replies | |
| 22/36 | perf vendor events intel: Update ivytown events and TMA metrics to 5.32tools/ tools/ tools/ | +205 | 0 replies | |
| 23/36 | perf vendor events intel: Update jaketown events and TMA metrics to 5.32tools/ tools/ tools/ | +71 | 0 replies | |
| 24/36 | perf vendor events intel: Update knightslanding eventstools/ tools/ | +6 | 0 replies | |
| 25/36 | perf vendor events intel: Update lunarlake events and TMA metrics to 5.32tools/ tools/ tools/ +2 more | +40 | 0 replies | |
| 26/36 | perf vendor events intel: Update meteorlake events and TMA metrics to 5.32tools/ tools/ tools/ +3 more | +37 | 0 replies | |
| 27/36 | perf vendor events intel: Update novalake eventstools/ tools/ tools/ | +1 | 0 replies | |
| 28/36 | perf vendor events intel: Update pantherlake eventstools/ tools/ tools/ +1 more | +1 | 0 replies | |
| 29/36 | perf vendor events intel: Update rocketlake events and TMA metrics to 5.32tools/ tools/ tools/ | +23 | 0 replies | |
| 30/36 | perf vendor events intel: Update sandybridge metrics to TMA 5.32tools/ tools/ | +17 | 0 replies | |
| 31/36 | perf vendor events intel: Update sapphirerapids events to 1.41 and TMA metrics to 5.32tools/ tools/ tools/ +7 more | +119 | 0 replies | |
| 32/36 | perf vendor events intel: Update sierraforest events and metricstools/ tools/ tools/ +5 more | +11 | 0 replies | |
| 33/36 | perf vendor events intel: Update skylake events and TMA metrics to 5.32tools/ tools/ tools/ | +27 | 0 replies | |
| 34/36 | perf vendor events intel: Update skylakex events and TMA metrics to 5.32tools/ tools/ tools/ +2 more | +54 | 0 replies | |
| 35/36 | perf vendor events intel: Update snowridgex eventstools/ tools/ tools/ +2 more | +155 | 0 replies | |
| 36/36 | perf vendor events intel: Update tigerlake events and TMA metrics to 5.32tools/ tools/ tools/ | +23 | 0 replies |
Reviews trailers per patch
1 of 36 patches has a Reviewed-by or Acked-by.
| Patch | Dapeng Mi |
|---|---|
| 1/36 | R-b |
| 2/36 | |
| 3/36 | |
| 4/36 | |
| 5/36 | |
| 6/36 | |
| 7/36 | |
| 8/36 | |
| 9/36 | |
| 10/36 | |
| 11/36 | |
| 12/36 | |
| 13/36 | |
| 14/36 | |
| 15/36 | |
| 16/36 | |
| 17/36 | |
| 18/36 | |
| 19/36 | |
| 20/36 | |
| 21/36 | |
| 22/36 | |
| 23/36 | |
| 24/36 | |
| 25/36 | |
| 26/36 | |
| 27/36 | |
| 28/36 | |
| 29/36 | |
| 30/36 | |
| 31/36 | |
| 32/36 | |
| 33/36 | |
| 34/36 | |
| 35/36 | |
| 36/36 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/36] perf pmu-events: Intel event/metric fixes and TMA 5.32 updates
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/[email protected]/):
- Add Reviewed-by: Dapeng Mi <[email protected]> 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
Signature · 1 line
2.56.1.915.g69d5ec7298-goog