From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796199700; b=nX2WpPOeLVEOwUa0WiPlZAfJBfV5WuPnnB+euygcKHoHLD/2tIZp/cop5f2CfkzXUZvA 9R/vekvHsUPsqC8zbKzoFLzTYxkj+DP9DfeGLi8UoBalQwC6tqdpm6qDjy11iAuNlo8wv eAMJPosdEmClnFVxn5VJMaKxy6vZJLiGKqp3C6HoYH8rxO81g3rX0rYL9qtyigS4WBu74 7hdjRPeIOveOnrxHQPRjsygbvLMdruxGE55voN6h5sKNQxmEtODraIkcF49+QYbSSdP16 NoOS8ujIhyffGvZVCN5MjTZCjLtnqlZ2L7kCMfy20nSRQ6Pw92TOLIWxCfUMMxeeiWg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796199700; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:Mime-Version: X-Mailer:Message-ID:Subject:From:To:Cc:Content-Type; bh=r5gg7VWXB61BfpGZYffMYg8CM3muFfXi2VzHRGOeXZw=; b=eKvTk984+0TVrwcdoI2ly+UdfdgUTtq/WMuRMjUosNjX9RZbrwKJAagAWZ+zbRq7AIxl 3HT0XOWugjSWYhuBpfGYwyGV0904MGSeKkLY4mBis4yP63P81qqE0rqY64AAIH78CgWmd v24smGiT6Havbv3tzr44mW8EwHsGiSsiHUT1Ip80PQnYluXKZH0X+DEaGLk9PK8ac3teQ 60LF+cKmREhJcSr+uan22QQS5PSbWHxrsttr1MwDu4nhZY47yNRo5LWZUnQ8swQZa109v lmWXlsdg5P9AW3A7EeC8sbhaHN3O1s6eFL4u+fX1wP7tRz0iLi/AMelbN5OGOYiHISw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=EivM26SG; arc=none smtp.remote-ip=74.125.82.200 Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60E31606A327 for ; Wed, 2 Dec 2026 08:21:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 60E31606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=EivM26SG Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-3425098ae4bso12380104eec.0 for ; Wed, 02 Dec 2026 00:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796199699; x=1796804499; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=r5gg7VWXB61BfpGZYffMYg8CM3muFfXi2VzHRGOeXZw=; b=EivM26SGKhi3g2BvasyXymAjRr0XmhOpJGmHy5qsF5PwhJsuQrsfXsrayAugz0+Bdh mfnOwo/A2FzOK/HCz/RTd2TtdObSbgHzqjMv8NDJcHmAO5pLwqM6khaO8fJU2y82F5F9 +ZK5ZQA35+B/8sy9LnV1cbbySbf0azjTeUxY9rvm3W0ArWtNCPlTWj8xzGAq8yYgqkHm GLb63pdpnboNqcYzvdVZEuMk0zu1uf7p+MoJyvLnqIVArI49srWcIouyQAug2YECifRN JkJTiGFV3qhFvE7wQHRVZmfu9qYKkX2gseN9lY3gPz+zTsOZR3Sps4Y/1njCHveHQOfl 9O7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796199699; x=1796804499; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=r5gg7VWXB61BfpGZYffMYg8CM3muFfXi2VzHRGOeXZw=; b=bOarC5VrVyFqVM8uMCvCNtv78cKIkQfu1aNDDBM4jeQu6boVkQL8NP3t3hRWkBOtlT 36DQ6RWAY1hN11oINYQOqx9ZU4yaYAlol6MrI2SKwB6eit4AZZL9iYrlPWMVsCsq6vw9 939cIT/IdXrgGghijaDQhuWrSYcW17cseH8ytUGeVKc3jqlG4mkNeP1T+NhScS34PQFD d/0RVxZhYgpWK54Gu3pZzC6ahUYTyZboakbk1iuLO0GSCYK7EHaNSkXjLDQ5SyRHxeLq O2+PXOa6VQxKjEzwMm8VGMKw2tuk6vh+NPLfn7tbkve1aX20ylq1Zq+WAzrtlX/rpoxW 8voQ== X-Forwarded-Encrypted: i=1; AL+hErG2RPrsf3Fp7pdPVQ91b4Ghww3c8pS8M10qx55IEd1/fylxxXDMiuIRUwvSOqL4S5vHohvtHUHbCyt9t5W4KWdO@vger.kernel.org X-Gm-Message-State: APuU4Z+LhFlWwOyLPbZhHCUZXjPa86laHvcQLd+OGzPd2worbIFHncNa 84hibdtCl/3fnu8cQE6x3h0YnQ7ZzuQqR63LCauP0AncdMqPvGX9PtnUYkllTxJlkwGJ9bbRjki oTkH0E/mfYw== X-Received: from dlah1.prod.google.com ([2002:a05:701b:2601:b0:1b5:1d0c:b35a]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:5f19:b0:1b5:51b4:85aa with SMTP id a92af1059eb24-1b5524b5a93mr33134743c88.12.1796199698970; Wed, 02 Dec 2026 00:21:38 -0800 (PST) Date: Wed, 2 Dec 2026 00:20:51 -0800 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: Subject: [PATCH 00/36] perf pmu-events: Intel event/metric fixes and TMA 5.32 updates From: Ian Rogers 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@vger.kernel.org, linux-kernel@vger.kernel.org, Ian Rogers , Sandipan Das Content-Type: text/plain; charset="UTF-8" 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\=@ 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