[PATCH v2 00/23] Intel vendor events and TMA 5.01 metrics

Ian Rogers posted 23 patches 11 months ago
There is a newer version of this series
.../arch/x86/alderlake/adl-metrics.json       | 3637 ++++++++++---
.../pmu-events/arch/x86/alderlake/cache.json  |  292 +-
.../arch/x86/alderlake/floating-point.json    |   19 +-
.../arch/x86/alderlake/frontend.json          |   19 -
.../pmu-events/arch/x86/alderlake/memory.json |   32 +-
.../arch/x86/alderlake/metricgroups.json      |   10 +-
.../pmu-events/arch/x86/alderlake/other.json  |   92 +-
.../arch/x86/alderlake/pipeline.json          |  127 +-
.../arch/x86/alderlake/virtual-memory.json    |   33 +
.../arch/x86/alderlaken/adln-metrics.json     |   83 +-
.../pmu-events/arch/x86/alderlaken/cache.json |  227 +-
.../arch/x86/alderlaken/floating-point.json   |   17 +-
.../arch/x86/alderlaken/memory.json           |   20 +
.../pmu-events/arch/x86/alderlaken/other.json |   81 +-
.../arch/x86/alderlaken/pipeline.json         |   97 +-
.../arch/x86/alderlaken/virtual-memory.json   |   30 +
.../arch/x86/arrowlake/arl-metrics.json       | 4597 ++++++++++++++++
.../pmu-events/arch/x86/arrowlake/cache.json  | 1471 ++++++
.../arch/x86/arrowlake/floating-point.json    |  532 ++
.../arch/x86/arrowlake/frontend.json          |  609 +++
.../pmu-events/arch/x86/arrowlake/memory.json |  387 ++
.../arch/x86/arrowlake/metricgroups.json      |  150 +
.../pmu-events/arch/x86/arrowlake/other.json  |  279 +
.../arch/x86/arrowlake/pipeline.json          | 2307 +++++++++
.../arch/x86/arrowlake/uncore-cache.json      |   20 +
.../x86/arrowlake/uncore-interconnect.json    |   47 +
.../arch/x86/arrowlake/uncore-memory.json     |  142 +
.../arch/x86/arrowlake/uncore-other.json      |   10 +
.../arch/x86/arrowlake/virtual-memory.json    |  522 ++
.../arch/x86/broadwell/bdw-metrics.json       |  312 +-
.../pmu-events/arch/x86/broadwell/cache.json  |   10 +-
.../arch/x86/broadwell/frontend.json          |    4 +-
.../pmu-events/arch/x86/broadwell/memory.json |    8 +-
.../arch/x86/broadwell/metricgroups.json      |    5 +
.../arch/x86/broadwell/pipeline.json          |   10 +-
.../arch/x86/broadwellde/bdwde-metrics.json   |  256 +-
.../arch/x86/broadwellde/cache.json           |   10 +-
.../arch/x86/broadwellde/frontend.json        |    4 +-
.../arch/x86/broadwellde/memory.json          |    6 +-
.../arch/x86/broadwellde/metricgroups.json    |    5 +
.../arch/x86/broadwellde/pipeline.json        |   10 +-
.../arch/x86/broadwellde/uncore-cache.json    |   28 +-
.../x86/broadwellde/uncore-interconnect.json  |   16 +-
.../arch/x86/broadwellx/bdx-metrics.json      |  344 +-
.../pmu-events/arch/x86/broadwellx/cache.json |   10 +-
.../arch/x86/broadwellx/frontend.json         |    4 +-
.../arch/x86/broadwellx/memory.json           |    6 +-
.../arch/x86/broadwellx/metricgroups.json     |    5 +
.../arch/x86/broadwellx/pipeline.json         |   10 +-
.../arch/x86/broadwellx/uncore-cache.json     |   28 +-
.../x86/broadwellx/uncore-interconnect.json   |   36 +-
.../arch/x86/broadwellx/uncore-memory.json    |    1 +
.../arch/x86/cascadelakex/clx-metrics.json    |  767 +--
.../arch/x86/cascadelakex/metricgroups.json   |    9 +-
.../arch/x86/cascadelakex/uncore-cache.json   |   60 +-
.../x86/cascadelakex/uncore-interconnect.json |   11 -
.../arch/x86/clearwaterforest/cache.json      |  144 +
.../arch/x86/clearwaterforest/counter.json    |    7 +
.../arch/x86/clearwaterforest/frontend.json   |   18 +
.../arch/x86/clearwaterforest/memory.json     |   22 +
.../arch/x86/clearwaterforest/other.json      |   22 +
.../arch/x86/clearwaterforest/pipeline.json   |  113 +
.../x86/clearwaterforest/virtual-memory.json  |   29 +
.../arch/x86/emeraldrapids/cache.json         |   28 +-
.../arch/x86/emeraldrapids/emr-metrics.json   | 1036 ++--
.../arch/x86/emeraldrapids/frontend.json      |   19 -
.../arch/x86/emeraldrapids/memory.json        |   15 +-
.../arch/x86/emeraldrapids/metricgroups.json  |   10 +-
.../arch/x86/emeraldrapids/pipeline.json      |   23 -
.../arch/x86/emeraldrapids/uncore-io.json     |  218 +-
.../arch/x86/grandridge/grr-metrics.json      |  284 +-
.../arch/x86/grandridge/pipeline.json         |    3 +-
.../arch/x86/grandridge/uncore-cache.json     |    4 +-
.../x86/grandridge/uncore-interconnect.json   |   60 +
.../arch/x86/grandridge/uncore-io.json        |  214 +-
.../arch/x86/grandridge/uncore-memory.json    |    2 +-
.../arch/x86/graniterapids/cache.json         |  110 +-
.../arch/x86/graniterapids/counter.json       |    2 +-
.../arch/x86/graniterapids/frontend.json      |   24 +-
.../arch/x86/graniterapids/gnr-metrics.json   | 2311 +++++++++
.../arch/x86/graniterapids/memory.json        |  121 +-
.../arch/x86/graniterapids/metricgroups.json  |  145 +
.../arch/x86/graniterapids/other.json         |   99 +
.../arch/x86/graniterapids/pipeline.json      |   40 +-
.../arch/x86/graniterapids/uncore-cache.json  |   14 +-
.../graniterapids/uncore-interconnect.json    |   87 +
.../arch/x86/graniterapids/uncore-io.json     |  280 +-
.../arch/x86/graniterapids/uncore-memory.json |  122 +-
.../arch/x86/graniterapids/uncore-power.json  |   98 +
.../arch/x86/haswell/hsw-metrics.json         |  260 +-
.../pmu-events/arch/x86/haswell/memory.json   |    2 +-
.../arch/x86/haswell/metricgroups.json        |    5 +
.../arch/x86/haswellx/hsx-metrics.json        |  296 +-
.../arch/x86/haswellx/metricgroups.json       |    5 +
.../arch/x86/haswellx/uncore-cache.json       |   28 +-
.../x86/haswellx/uncore-interconnect.json     |   38 +-
.../pmu-events/arch/x86/icelake/cache.json    |   34 +-
.../pmu-events/arch/x86/icelake/frontend.json |   17 -
.../arch/x86/icelake/icl-metrics.json         |  849 +--
.../pmu-events/arch/x86/icelake/memory.json   |   13 +-
.../arch/x86/icelake/metricgroups.json        |   10 +-
.../pmu-events/arch/x86/icelake/pipeline.json |   30 +-
.../arch/x86/icelake/uncore-interconnect.json |   76 -
.../arch/x86/icelake/uncore-other.json        |    2 +-
.../arch/x86/icelake/virtual-memory.json      |   18 +
.../pmu-events/arch/x86/icelakex/cache.json   |   41 +-
.../arch/x86/icelakex/frontend.json           |   17 -
.../arch/x86/icelakex/icx-metrics.json        |  852 +--
.../pmu-events/arch/x86/icelakex/memory.json  |   13 +-
.../arch/x86/icelakex/metricgroups.json       |   10 +-
.../arch/x86/icelakex/pipeline.json           |   30 +-
.../pmu-events/arch/x86/lunarlake/cache.json  | 1322 ++++-
.../arch/x86/lunarlake/floating-point.json    |  484 ++
.../arch/x86/lunarlake/frontend.json          |  654 ++-
.../arch/x86/lunarlake/lnl-metrics.json       | 4611 +++++++++++++++++
.../pmu-events/arch/x86/lunarlake/memory.json |  262 +-
.../arch/x86/lunarlake/metricgroups.json      |  150 +
.../pmu-events/arch/x86/lunarlake/other.json  |  496 +-
.../arch/x86/lunarlake/pipeline.json          | 2104 +++++++-
.../arch/x86/lunarlake/uncore-memory.json     |   18 +
.../arch/x86/lunarlake/virtual-memory.json    |  428 ++
tools/perf/pmu-events/arch/x86/mapfile.csv    |   42 +-
.../pmu-events/arch/x86/meteorlake/cache.json |  109 +-
.../arch/x86/meteorlake/frontend.json         |   30 +-
.../arch/x86/meteorlake/memory.json           |   22 +-
.../arch/x86/meteorlake/metricgroups.json     |   10 +-
.../arch/x86/meteorlake/mtl-metrics.json      | 3818 +++++++++++---
.../pmu-events/arch/x86/meteorlake/other.json |   54 +
.../arch/x86/meteorlake/pipeline.json         |   89 +-
.../pmu-events/arch/x86/rocketlake/cache.json |   34 +-
.../arch/x86/rocketlake/frontend.json         |   17 -
.../arch/x86/rocketlake/memory.json           |   13 +-
.../arch/x86/rocketlake/metricgroups.json     |   10 +-
.../arch/x86/rocketlake/pipeline.json         |   30 +-
.../arch/x86/rocketlake/rkl-metrics.json      |  849 +--
.../x86/rocketlake/uncore-interconnect.json   |   10 -
.../arch/x86/rocketlake/uncore-other.json     |    2 +-
.../arch/x86/rocketlake/virtual-memory.json   |   18 +
.../arch/x86/sapphirerapids/cache.json        |   30 +-
.../arch/x86/sapphirerapids/frontend.json     |   19 -
.../arch/x86/sapphirerapids/memory.json       |   15 +-
.../arch/x86/sapphirerapids/metricgroups.json |   10 +-
.../arch/x86/sapphirerapids/pipeline.json     |   23 -
.../arch/x86/sapphirerapids/spr-metrics.json  |  968 ++--
.../arch/x86/sapphirerapids/uncore-io.json    |  138 +-
.../arch/x86/sierraforest/counter.json        |    2 +-
.../arch/x86/sierraforest/other.json          |   20 +
.../arch/x86/sierraforest/pipeline.json       |    3 +-
.../arch/x86/sierraforest/srf-metrics.json    |  308 +-
.../arch/x86/sierraforest/uncore-cache.json   |   28 +-
.../x86/sierraforest/uncore-interconnect.json |   87 +
.../arch/x86/sierraforest/uncore-io.json      |  280 +-
.../arch/x86/sierraforest/uncore-memory.json  |  122 +-
.../arch/x86/sierraforest/uncore-power.json   |   98 +
.../arch/x86/skylake/metricgroups.json        |    9 +-
.../arch/x86/skylake/skl-metrics.json         |  684 ++-
.../arch/x86/skylakex/metricgroups.json       |    9 +-
.../arch/x86/skylakex/skx-metrics.json        |  740 +--
.../arch/x86/skylakex/uncore-cache.json       |   60 +-
.../x86/skylakex/uncore-interconnect.json     |   11 -
.../pmu-events/arch/x86/tigerlake/cache.json  |   45 +-
.../arch/x86/tigerlake/frontend.json          |   17 -
.../pmu-events/arch/x86/tigerlake/memory.json |   13 +-
.../arch/x86/tigerlake/metricgroups.json      |   10 +-
.../arch/x86/tigerlake/pipeline.json          |   30 +-
.../arch/x86/tigerlake/tgl-metrics.json       |  745 +--
.../x86/tigerlake/uncore-interconnect.json    |    4 +-
.../arch/x86/tigerlake/uncore-other.json      |    2 +-
.../arch/x86/tigerlake/virtual-memory.json    |   18 +
169 files changed, 38371 insertions(+), 8097 deletions(-)
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/arl-metrics.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/cache.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/floating-point.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/frontend.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/memory.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/metricgroups.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/other.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/pipeline.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-cache.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-interconnect.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-memory.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-other.json
create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/virtual-memory.json
create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/cache.json
create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/counter.json
create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/frontend.json
create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/memory.json
create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/other.json
create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/pipeline.json
create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/virtual-memory.json
create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/gnr-metrics.json
create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/metricgroups.json
create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/floating-point.json
create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/lnl-metrics.json
create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/metricgroups.json
create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/uncore-memory.json
[PATCH v2 00/23] Intel vendor events and TMA 5.01 metrics
Posted by Ian Rogers 11 months ago
Update the Intel vendor events to the latest.
Update the metrics to TMA 5.01.
Add Arrowlake and Clearwaterforest support.
Add metrics for LNL and GNR.
Address IIO uncore issue spotted on EMR, GRR, GNR, SPR and SRF.

The perf json was generated using the script:
https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
with the generated json being in:
https://github.com/intel/perfmon/tree/main/scripts/perf

Thanks to Perry Taylor <perry.taylor@intel.com>, Caleb Biggers
<caleb.biggers@intel.com>, Edward Baker <edward.baker@intel.com> and
Weilin Wang <weilin.wang@intel.com> for helping get this patch series
together.

v2: Fix hybrid and Co-authored-by tag issues reported by
    Arnaldo. Updates to Lunarlake and Meteorlake events. Addition of
    Clearwaterforest.

Ian Rogers (23):
  perf vendor events: Update Alderlake events/metrics
  perf vendor events: Update AlderlakeN events/metrics
  perf vendor events: Add Arrowlake events/metrics
  perf vendor events: Update Broadwell events/metrics
  perf vendor events: Update BroadwellDE events/metrics
  perf vendor events: Update BroadwellX events/metrics
  perf vendor events: Update CascadelakeX events/metrics
  perf vendor events: Add Clearwaterforest events
  perf vendor events: Update EmeraldRapids events/metrics
  perf vendor events: Update GrandRidge events/metrics
  perf vendor events: Update/add Graniterapids events/metrics
  perf vendor events: Update Haswell events/metrics
  perf vendor events: Update HaswellX events/metrics
  perf vendor events: Update Icelake events/metrics
  perf vendor events: Update IcelakeX events/metrics
  perf vendor events: Update/add Lunarlake events/metrics
  perf vendor events: Update Meteorlake events/metrics
  perf vendor events: Update Rocketlake events/metrics
  perf vendor events: Update Sapphirerapids events/metrics
  perf vendor events: Update Sierraforest events/metrics
  perf vendor events: Update Skylake metrics
  perf vendor events: Update SkylakeX events/metrics
  perf vendor events: Update Tigerlake events/metrics

 .../arch/x86/alderlake/adl-metrics.json       | 3637 ++++++++++---
 .../pmu-events/arch/x86/alderlake/cache.json  |  292 +-
 .../arch/x86/alderlake/floating-point.json    |   19 +-
 .../arch/x86/alderlake/frontend.json          |   19 -
 .../pmu-events/arch/x86/alderlake/memory.json |   32 +-
 .../arch/x86/alderlake/metricgroups.json      |   10 +-
 .../pmu-events/arch/x86/alderlake/other.json  |   92 +-
 .../arch/x86/alderlake/pipeline.json          |  127 +-
 .../arch/x86/alderlake/virtual-memory.json    |   33 +
 .../arch/x86/alderlaken/adln-metrics.json     |   83 +-
 .../pmu-events/arch/x86/alderlaken/cache.json |  227 +-
 .../arch/x86/alderlaken/floating-point.json   |   17 +-
 .../arch/x86/alderlaken/memory.json           |   20 +
 .../pmu-events/arch/x86/alderlaken/other.json |   81 +-
 .../arch/x86/alderlaken/pipeline.json         |   97 +-
 .../arch/x86/alderlaken/virtual-memory.json   |   30 +
 .../arch/x86/arrowlake/arl-metrics.json       | 4597 ++++++++++++++++
 .../pmu-events/arch/x86/arrowlake/cache.json  | 1471 ++++++
 .../arch/x86/arrowlake/floating-point.json    |  532 ++
 .../arch/x86/arrowlake/frontend.json          |  609 +++
 .../pmu-events/arch/x86/arrowlake/memory.json |  387 ++
 .../arch/x86/arrowlake/metricgroups.json      |  150 +
 .../pmu-events/arch/x86/arrowlake/other.json  |  279 +
 .../arch/x86/arrowlake/pipeline.json          | 2307 +++++++++
 .../arch/x86/arrowlake/uncore-cache.json      |   20 +
 .../x86/arrowlake/uncore-interconnect.json    |   47 +
 .../arch/x86/arrowlake/uncore-memory.json     |  142 +
 .../arch/x86/arrowlake/uncore-other.json      |   10 +
 .../arch/x86/arrowlake/virtual-memory.json    |  522 ++
 .../arch/x86/broadwell/bdw-metrics.json       |  312 +-
 .../pmu-events/arch/x86/broadwell/cache.json  |   10 +-
 .../arch/x86/broadwell/frontend.json          |    4 +-
 .../pmu-events/arch/x86/broadwell/memory.json |    8 +-
 .../arch/x86/broadwell/metricgroups.json      |    5 +
 .../arch/x86/broadwell/pipeline.json          |   10 +-
 .../arch/x86/broadwellde/bdwde-metrics.json   |  256 +-
 .../arch/x86/broadwellde/cache.json           |   10 +-
 .../arch/x86/broadwellde/frontend.json        |    4 +-
 .../arch/x86/broadwellde/memory.json          |    6 +-
 .../arch/x86/broadwellde/metricgroups.json    |    5 +
 .../arch/x86/broadwellde/pipeline.json        |   10 +-
 .../arch/x86/broadwellde/uncore-cache.json    |   28 +-
 .../x86/broadwellde/uncore-interconnect.json  |   16 +-
 .../arch/x86/broadwellx/bdx-metrics.json      |  344 +-
 .../pmu-events/arch/x86/broadwellx/cache.json |   10 +-
 .../arch/x86/broadwellx/frontend.json         |    4 +-
 .../arch/x86/broadwellx/memory.json           |    6 +-
 .../arch/x86/broadwellx/metricgroups.json     |    5 +
 .../arch/x86/broadwellx/pipeline.json         |   10 +-
 .../arch/x86/broadwellx/uncore-cache.json     |   28 +-
 .../x86/broadwellx/uncore-interconnect.json   |   36 +-
 .../arch/x86/broadwellx/uncore-memory.json    |    1 +
 .../arch/x86/cascadelakex/clx-metrics.json    |  767 +--
 .../arch/x86/cascadelakex/metricgroups.json   |    9 +-
 .../arch/x86/cascadelakex/uncore-cache.json   |   60 +-
 .../x86/cascadelakex/uncore-interconnect.json |   11 -
 .../arch/x86/clearwaterforest/cache.json      |  144 +
 .../arch/x86/clearwaterforest/counter.json    |    7 +
 .../arch/x86/clearwaterforest/frontend.json   |   18 +
 .../arch/x86/clearwaterforest/memory.json     |   22 +
 .../arch/x86/clearwaterforest/other.json      |   22 +
 .../arch/x86/clearwaterforest/pipeline.json   |  113 +
 .../x86/clearwaterforest/virtual-memory.json  |   29 +
 .../arch/x86/emeraldrapids/cache.json         |   28 +-
 .../arch/x86/emeraldrapids/emr-metrics.json   | 1036 ++--
 .../arch/x86/emeraldrapids/frontend.json      |   19 -
 .../arch/x86/emeraldrapids/memory.json        |   15 +-
 .../arch/x86/emeraldrapids/metricgroups.json  |   10 +-
 .../arch/x86/emeraldrapids/pipeline.json      |   23 -
 .../arch/x86/emeraldrapids/uncore-io.json     |  218 +-
 .../arch/x86/grandridge/grr-metrics.json      |  284 +-
 .../arch/x86/grandridge/pipeline.json         |    3 +-
 .../arch/x86/grandridge/uncore-cache.json     |    4 +-
 .../x86/grandridge/uncore-interconnect.json   |   60 +
 .../arch/x86/grandridge/uncore-io.json        |  214 +-
 .../arch/x86/grandridge/uncore-memory.json    |    2 +-
 .../arch/x86/graniterapids/cache.json         |  110 +-
 .../arch/x86/graniterapids/counter.json       |    2 +-
 .../arch/x86/graniterapids/frontend.json      |   24 +-
 .../arch/x86/graniterapids/gnr-metrics.json   | 2311 +++++++++
 .../arch/x86/graniterapids/memory.json        |  121 +-
 .../arch/x86/graniterapids/metricgroups.json  |  145 +
 .../arch/x86/graniterapids/other.json         |   99 +
 .../arch/x86/graniterapids/pipeline.json      |   40 +-
 .../arch/x86/graniterapids/uncore-cache.json  |   14 +-
 .../graniterapids/uncore-interconnect.json    |   87 +
 .../arch/x86/graniterapids/uncore-io.json     |  280 +-
 .../arch/x86/graniterapids/uncore-memory.json |  122 +-
 .../arch/x86/graniterapids/uncore-power.json  |   98 +
 .../arch/x86/haswell/hsw-metrics.json         |  260 +-
 .../pmu-events/arch/x86/haswell/memory.json   |    2 +-
 .../arch/x86/haswell/metricgroups.json        |    5 +
 .../arch/x86/haswellx/hsx-metrics.json        |  296 +-
 .../arch/x86/haswellx/metricgroups.json       |    5 +
 .../arch/x86/haswellx/uncore-cache.json       |   28 +-
 .../x86/haswellx/uncore-interconnect.json     |   38 +-
 .../pmu-events/arch/x86/icelake/cache.json    |   34 +-
 .../pmu-events/arch/x86/icelake/frontend.json |   17 -
 .../arch/x86/icelake/icl-metrics.json         |  849 +--
 .../pmu-events/arch/x86/icelake/memory.json   |   13 +-
 .../arch/x86/icelake/metricgroups.json        |   10 +-
 .../pmu-events/arch/x86/icelake/pipeline.json |   30 +-
 .../arch/x86/icelake/uncore-interconnect.json |   76 -
 .../arch/x86/icelake/uncore-other.json        |    2 +-
 .../arch/x86/icelake/virtual-memory.json      |   18 +
 .../pmu-events/arch/x86/icelakex/cache.json   |   41 +-
 .../arch/x86/icelakex/frontend.json           |   17 -
 .../arch/x86/icelakex/icx-metrics.json        |  852 +--
 .../pmu-events/arch/x86/icelakex/memory.json  |   13 +-
 .../arch/x86/icelakex/metricgroups.json       |   10 +-
 .../arch/x86/icelakex/pipeline.json           |   30 +-
 .../pmu-events/arch/x86/lunarlake/cache.json  | 1322 ++++-
 .../arch/x86/lunarlake/floating-point.json    |  484 ++
 .../arch/x86/lunarlake/frontend.json          |  654 ++-
 .../arch/x86/lunarlake/lnl-metrics.json       | 4611 +++++++++++++++++
 .../pmu-events/arch/x86/lunarlake/memory.json |  262 +-
 .../arch/x86/lunarlake/metricgroups.json      |  150 +
 .../pmu-events/arch/x86/lunarlake/other.json  |  496 +-
 .../arch/x86/lunarlake/pipeline.json          | 2104 +++++++-
 .../arch/x86/lunarlake/uncore-memory.json     |   18 +
 .../arch/x86/lunarlake/virtual-memory.json    |  428 ++
 tools/perf/pmu-events/arch/x86/mapfile.csv    |   42 +-
 .../pmu-events/arch/x86/meteorlake/cache.json |  109 +-
 .../arch/x86/meteorlake/frontend.json         |   30 +-
 .../arch/x86/meteorlake/memory.json           |   22 +-
 .../arch/x86/meteorlake/metricgroups.json     |   10 +-
 .../arch/x86/meteorlake/mtl-metrics.json      | 3818 +++++++++++---
 .../pmu-events/arch/x86/meteorlake/other.json |   54 +
 .../arch/x86/meteorlake/pipeline.json         |   89 +-
 .../pmu-events/arch/x86/rocketlake/cache.json |   34 +-
 .../arch/x86/rocketlake/frontend.json         |   17 -
 .../arch/x86/rocketlake/memory.json           |   13 +-
 .../arch/x86/rocketlake/metricgroups.json     |   10 +-
 .../arch/x86/rocketlake/pipeline.json         |   30 +-
 .../arch/x86/rocketlake/rkl-metrics.json      |  849 +--
 .../x86/rocketlake/uncore-interconnect.json   |   10 -
 .../arch/x86/rocketlake/uncore-other.json     |    2 +-
 .../arch/x86/rocketlake/virtual-memory.json   |   18 +
 .../arch/x86/sapphirerapids/cache.json        |   30 +-
 .../arch/x86/sapphirerapids/frontend.json     |   19 -
 .../arch/x86/sapphirerapids/memory.json       |   15 +-
 .../arch/x86/sapphirerapids/metricgroups.json |   10 +-
 .../arch/x86/sapphirerapids/pipeline.json     |   23 -
 .../arch/x86/sapphirerapids/spr-metrics.json  |  968 ++--
 .../arch/x86/sapphirerapids/uncore-io.json    |  138 +-
 .../arch/x86/sierraforest/counter.json        |    2 +-
 .../arch/x86/sierraforest/other.json          |   20 +
 .../arch/x86/sierraforest/pipeline.json       |    3 +-
 .../arch/x86/sierraforest/srf-metrics.json    |  308 +-
 .../arch/x86/sierraforest/uncore-cache.json   |   28 +-
 .../x86/sierraforest/uncore-interconnect.json |   87 +
 .../arch/x86/sierraforest/uncore-io.json      |  280 +-
 .../arch/x86/sierraforest/uncore-memory.json  |  122 +-
 .../arch/x86/sierraforest/uncore-power.json   |   98 +
 .../arch/x86/skylake/metricgroups.json        |    9 +-
 .../arch/x86/skylake/skl-metrics.json         |  684 ++-
 .../arch/x86/skylakex/metricgroups.json       |    9 +-
 .../arch/x86/skylakex/skx-metrics.json        |  740 +--
 .../arch/x86/skylakex/uncore-cache.json       |   60 +-
 .../x86/skylakex/uncore-interconnect.json     |   11 -
 .../pmu-events/arch/x86/tigerlake/cache.json  |   45 +-
 .../arch/x86/tigerlake/frontend.json          |   17 -
 .../pmu-events/arch/x86/tigerlake/memory.json |   13 +-
 .../arch/x86/tigerlake/metricgroups.json      |   10 +-
 .../arch/x86/tigerlake/pipeline.json          |   30 +-
 .../arch/x86/tigerlake/tgl-metrics.json       |  745 +--
 .../x86/tigerlake/uncore-interconnect.json    |    4 +-
 .../arch/x86/tigerlake/uncore-other.json      |    2 +-
 .../arch/x86/tigerlake/virtual-memory.json    |   18 +
 169 files changed, 38371 insertions(+), 8097 deletions(-)
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/arl-metrics.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/cache.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/floating-point.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/frontend.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/metricgroups.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/other.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/pipeline.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-cache.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-interconnect.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-other.json
 create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/virtual-memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/cache.json
 create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/counter.json
 create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/frontend.json
 create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/other.json
 create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/pipeline.json
 create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/virtual-memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/gnr-metrics.json
 create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/metricgroups.json
 create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/floating-point.json
 create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/lnl-metrics.json
 create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/metricgroups.json
 create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/uncore-memory.json

-- 
2.48.0.rc2.279.g1de40edade-goog
Re: [PATCH v2 00/23] Intel vendor events and TMA 5.01 metrics
Posted by Liang, Kan 11 months ago

On 2025-01-16 1:43 a.m., Ian Rogers wrote:
> Update the Intel vendor events to the latest.
> Update the metrics to TMA 5.01.
> Add Arrowlake and Clearwaterforest support.
> Add metrics for LNL and GNR.
> Address IIO uncore issue spotted on EMR, GRR, GNR, SPR and SRF.
> 
> The perf json was generated using the script:
> https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
> with the generated json being in:
> https://github.com/intel/perfmon/tree/main/scripts/perf
> 
> Thanks to Perry Taylor <perry.taylor@intel.com>, Caleb Biggers
> <caleb.biggers@intel.com>, Edward Baker <edward.baker@intel.com> and
> Weilin Wang <weilin.wang@intel.com> for helping get this patch series
> together.
> 
> v2: Fix hybrid and Co-authored-by tag issues reported by
>     Arnaldo. Updates to Lunarlake and Meteorlake events. Addition of
>     Clearwaterforest.

Thanks Ian!

Acked-by: Kan Liang <kan.liang@linux.intel.com>

Thanks,
Kan

> 
> Ian Rogers (23):
>   perf vendor events: Update Alderlake events/metrics
>   perf vendor events: Update AlderlakeN events/metrics
>   perf vendor events: Add Arrowlake events/metrics
>   perf vendor events: Update Broadwell events/metrics
>   perf vendor events: Update BroadwellDE events/metrics
>   perf vendor events: Update BroadwellX events/metrics
>   perf vendor events: Update CascadelakeX events/metrics
>   perf vendor events: Add Clearwaterforest events
>   perf vendor events: Update EmeraldRapids events/metrics
>   perf vendor events: Update GrandRidge events/metrics
>   perf vendor events: Update/add Graniterapids events/metrics
>   perf vendor events: Update Haswell events/metrics
>   perf vendor events: Update HaswellX events/metrics
>   perf vendor events: Update Icelake events/metrics
>   perf vendor events: Update IcelakeX events/metrics
>   perf vendor events: Update/add Lunarlake events/metrics
>   perf vendor events: Update Meteorlake events/metrics
>   perf vendor events: Update Rocketlake events/metrics
>   perf vendor events: Update Sapphirerapids events/metrics
>   perf vendor events: Update Sierraforest events/metrics
>   perf vendor events: Update Skylake metrics
>   perf vendor events: Update SkylakeX events/metrics
>   perf vendor events: Update Tigerlake events/metrics
> 
>  .../arch/x86/alderlake/adl-metrics.json       | 3637 ++++++++++---
>  .../pmu-events/arch/x86/alderlake/cache.json  |  292 +-
>  .../arch/x86/alderlake/floating-point.json    |   19 +-
>  .../arch/x86/alderlake/frontend.json          |   19 -
>  .../pmu-events/arch/x86/alderlake/memory.json |   32 +-
>  .../arch/x86/alderlake/metricgroups.json      |   10 +-
>  .../pmu-events/arch/x86/alderlake/other.json  |   92 +-
>  .../arch/x86/alderlake/pipeline.json          |  127 +-
>  .../arch/x86/alderlake/virtual-memory.json    |   33 +
>  .../arch/x86/alderlaken/adln-metrics.json     |   83 +-
>  .../pmu-events/arch/x86/alderlaken/cache.json |  227 +-
>  .../arch/x86/alderlaken/floating-point.json   |   17 +-
>  .../arch/x86/alderlaken/memory.json           |   20 +
>  .../pmu-events/arch/x86/alderlaken/other.json |   81 +-
>  .../arch/x86/alderlaken/pipeline.json         |   97 +-
>  .../arch/x86/alderlaken/virtual-memory.json   |   30 +
>  .../arch/x86/arrowlake/arl-metrics.json       | 4597 ++++++++++++++++
>  .../pmu-events/arch/x86/arrowlake/cache.json  | 1471 ++++++
>  .../arch/x86/arrowlake/floating-point.json    |  532 ++
>  .../arch/x86/arrowlake/frontend.json          |  609 +++
>  .../pmu-events/arch/x86/arrowlake/memory.json |  387 ++
>  .../arch/x86/arrowlake/metricgroups.json      |  150 +
>  .../pmu-events/arch/x86/arrowlake/other.json  |  279 +
>  .../arch/x86/arrowlake/pipeline.json          | 2307 +++++++++
>  .../arch/x86/arrowlake/uncore-cache.json      |   20 +
>  .../x86/arrowlake/uncore-interconnect.json    |   47 +
>  .../arch/x86/arrowlake/uncore-memory.json     |  142 +
>  .../arch/x86/arrowlake/uncore-other.json      |   10 +
>  .../arch/x86/arrowlake/virtual-memory.json    |  522 ++
>  .../arch/x86/broadwell/bdw-metrics.json       |  312 +-
>  .../pmu-events/arch/x86/broadwell/cache.json  |   10 +-
>  .../arch/x86/broadwell/frontend.json          |    4 +-
>  .../pmu-events/arch/x86/broadwell/memory.json |    8 +-
>  .../arch/x86/broadwell/metricgroups.json      |    5 +
>  .../arch/x86/broadwell/pipeline.json          |   10 +-
>  .../arch/x86/broadwellde/bdwde-metrics.json   |  256 +-
>  .../arch/x86/broadwellde/cache.json           |   10 +-
>  .../arch/x86/broadwellde/frontend.json        |    4 +-
>  .../arch/x86/broadwellde/memory.json          |    6 +-
>  .../arch/x86/broadwellde/metricgroups.json    |    5 +
>  .../arch/x86/broadwellde/pipeline.json        |   10 +-
>  .../arch/x86/broadwellde/uncore-cache.json    |   28 +-
>  .../x86/broadwellde/uncore-interconnect.json  |   16 +-
>  .../arch/x86/broadwellx/bdx-metrics.json      |  344 +-
>  .../pmu-events/arch/x86/broadwellx/cache.json |   10 +-
>  .../arch/x86/broadwellx/frontend.json         |    4 +-
>  .../arch/x86/broadwellx/memory.json           |    6 +-
>  .../arch/x86/broadwellx/metricgroups.json     |    5 +
>  .../arch/x86/broadwellx/pipeline.json         |   10 +-
>  .../arch/x86/broadwellx/uncore-cache.json     |   28 +-
>  .../x86/broadwellx/uncore-interconnect.json   |   36 +-
>  .../arch/x86/broadwellx/uncore-memory.json    |    1 +
>  .../arch/x86/cascadelakex/clx-metrics.json    |  767 +--
>  .../arch/x86/cascadelakex/metricgroups.json   |    9 +-
>  .../arch/x86/cascadelakex/uncore-cache.json   |   60 +-
>  .../x86/cascadelakex/uncore-interconnect.json |   11 -
>  .../arch/x86/clearwaterforest/cache.json      |  144 +
>  .../arch/x86/clearwaterforest/counter.json    |    7 +
>  .../arch/x86/clearwaterforest/frontend.json   |   18 +
>  .../arch/x86/clearwaterforest/memory.json     |   22 +
>  .../arch/x86/clearwaterforest/other.json      |   22 +
>  .../arch/x86/clearwaterforest/pipeline.json   |  113 +
>  .../x86/clearwaterforest/virtual-memory.json  |   29 +
>  .../arch/x86/emeraldrapids/cache.json         |   28 +-
>  .../arch/x86/emeraldrapids/emr-metrics.json   | 1036 ++--
>  .../arch/x86/emeraldrapids/frontend.json      |   19 -
>  .../arch/x86/emeraldrapids/memory.json        |   15 +-
>  .../arch/x86/emeraldrapids/metricgroups.json  |   10 +-
>  .../arch/x86/emeraldrapids/pipeline.json      |   23 -
>  .../arch/x86/emeraldrapids/uncore-io.json     |  218 +-
>  .../arch/x86/grandridge/grr-metrics.json      |  284 +-
>  .../arch/x86/grandridge/pipeline.json         |    3 +-
>  .../arch/x86/grandridge/uncore-cache.json     |    4 +-
>  .../x86/grandridge/uncore-interconnect.json   |   60 +
>  .../arch/x86/grandridge/uncore-io.json        |  214 +-
>  .../arch/x86/grandridge/uncore-memory.json    |    2 +-
>  .../arch/x86/graniterapids/cache.json         |  110 +-
>  .../arch/x86/graniterapids/counter.json       |    2 +-
>  .../arch/x86/graniterapids/frontend.json      |   24 +-
>  .../arch/x86/graniterapids/gnr-metrics.json   | 2311 +++++++++
>  .../arch/x86/graniterapids/memory.json        |  121 +-
>  .../arch/x86/graniterapids/metricgroups.json  |  145 +
>  .../arch/x86/graniterapids/other.json         |   99 +
>  .../arch/x86/graniterapids/pipeline.json      |   40 +-
>  .../arch/x86/graniterapids/uncore-cache.json  |   14 +-
>  .../graniterapids/uncore-interconnect.json    |   87 +
>  .../arch/x86/graniterapids/uncore-io.json     |  280 +-
>  .../arch/x86/graniterapids/uncore-memory.json |  122 +-
>  .../arch/x86/graniterapids/uncore-power.json  |   98 +
>  .../arch/x86/haswell/hsw-metrics.json         |  260 +-
>  .../pmu-events/arch/x86/haswell/memory.json   |    2 +-
>  .../arch/x86/haswell/metricgroups.json        |    5 +
>  .../arch/x86/haswellx/hsx-metrics.json        |  296 +-
>  .../arch/x86/haswellx/metricgroups.json       |    5 +
>  .../arch/x86/haswellx/uncore-cache.json       |   28 +-
>  .../x86/haswellx/uncore-interconnect.json     |   38 +-
>  .../pmu-events/arch/x86/icelake/cache.json    |   34 +-
>  .../pmu-events/arch/x86/icelake/frontend.json |   17 -
>  .../arch/x86/icelake/icl-metrics.json         |  849 +--
>  .../pmu-events/arch/x86/icelake/memory.json   |   13 +-
>  .../arch/x86/icelake/metricgroups.json        |   10 +-
>  .../pmu-events/arch/x86/icelake/pipeline.json |   30 +-
>  .../arch/x86/icelake/uncore-interconnect.json |   76 -
>  .../arch/x86/icelake/uncore-other.json        |    2 +-
>  .../arch/x86/icelake/virtual-memory.json      |   18 +
>  .../pmu-events/arch/x86/icelakex/cache.json   |   41 +-
>  .../arch/x86/icelakex/frontend.json           |   17 -
>  .../arch/x86/icelakex/icx-metrics.json        |  852 +--
>  .../pmu-events/arch/x86/icelakex/memory.json  |   13 +-
>  .../arch/x86/icelakex/metricgroups.json       |   10 +-
>  .../arch/x86/icelakex/pipeline.json           |   30 +-
>  .../pmu-events/arch/x86/lunarlake/cache.json  | 1322 ++++-
>  .../arch/x86/lunarlake/floating-point.json    |  484 ++
>  .../arch/x86/lunarlake/frontend.json          |  654 ++-
>  .../arch/x86/lunarlake/lnl-metrics.json       | 4611 +++++++++++++++++
>  .../pmu-events/arch/x86/lunarlake/memory.json |  262 +-
>  .../arch/x86/lunarlake/metricgroups.json      |  150 +
>  .../pmu-events/arch/x86/lunarlake/other.json  |  496 +-
>  .../arch/x86/lunarlake/pipeline.json          | 2104 +++++++-
>  .../arch/x86/lunarlake/uncore-memory.json     |   18 +
>  .../arch/x86/lunarlake/virtual-memory.json    |  428 ++
>  tools/perf/pmu-events/arch/x86/mapfile.csv    |   42 +-
>  .../pmu-events/arch/x86/meteorlake/cache.json |  109 +-
>  .../arch/x86/meteorlake/frontend.json         |   30 +-
>  .../arch/x86/meteorlake/memory.json           |   22 +-
>  .../arch/x86/meteorlake/metricgroups.json     |   10 +-
>  .../arch/x86/meteorlake/mtl-metrics.json      | 3818 +++++++++++---
>  .../pmu-events/arch/x86/meteorlake/other.json |   54 +
>  .../arch/x86/meteorlake/pipeline.json         |   89 +-
>  .../pmu-events/arch/x86/rocketlake/cache.json |   34 +-
>  .../arch/x86/rocketlake/frontend.json         |   17 -
>  .../arch/x86/rocketlake/memory.json           |   13 +-
>  .../arch/x86/rocketlake/metricgroups.json     |   10 +-
>  .../arch/x86/rocketlake/pipeline.json         |   30 +-
>  .../arch/x86/rocketlake/rkl-metrics.json      |  849 +--
>  .../x86/rocketlake/uncore-interconnect.json   |   10 -
>  .../arch/x86/rocketlake/uncore-other.json     |    2 +-
>  .../arch/x86/rocketlake/virtual-memory.json   |   18 +
>  .../arch/x86/sapphirerapids/cache.json        |   30 +-
>  .../arch/x86/sapphirerapids/frontend.json     |   19 -
>  .../arch/x86/sapphirerapids/memory.json       |   15 +-
>  .../arch/x86/sapphirerapids/metricgroups.json |   10 +-
>  .../arch/x86/sapphirerapids/pipeline.json     |   23 -
>  .../arch/x86/sapphirerapids/spr-metrics.json  |  968 ++--
>  .../arch/x86/sapphirerapids/uncore-io.json    |  138 +-
>  .../arch/x86/sierraforest/counter.json        |    2 +-
>  .../arch/x86/sierraforest/other.json          |   20 +
>  .../arch/x86/sierraforest/pipeline.json       |    3 +-
>  .../arch/x86/sierraforest/srf-metrics.json    |  308 +-
>  .../arch/x86/sierraforest/uncore-cache.json   |   28 +-
>  .../x86/sierraforest/uncore-interconnect.json |   87 +
>  .../arch/x86/sierraforest/uncore-io.json      |  280 +-
>  .../arch/x86/sierraforest/uncore-memory.json  |  122 +-
>  .../arch/x86/sierraforest/uncore-power.json   |   98 +
>  .../arch/x86/skylake/metricgroups.json        |    9 +-
>  .../arch/x86/skylake/skl-metrics.json         |  684 ++-
>  .../arch/x86/skylakex/metricgroups.json       |    9 +-
>  .../arch/x86/skylakex/skx-metrics.json        |  740 +--
>  .../arch/x86/skylakex/uncore-cache.json       |   60 +-
>  .../x86/skylakex/uncore-interconnect.json     |   11 -
>  .../pmu-events/arch/x86/tigerlake/cache.json  |   45 +-
>  .../arch/x86/tigerlake/frontend.json          |   17 -
>  .../pmu-events/arch/x86/tigerlake/memory.json |   13 +-
>  .../arch/x86/tigerlake/metricgroups.json      |   10 +-
>  .../arch/x86/tigerlake/pipeline.json          |   30 +-
>  .../arch/x86/tigerlake/tgl-metrics.json       |  745 +--
>  .../x86/tigerlake/uncore-interconnect.json    |    4 +-
>  .../arch/x86/tigerlake/uncore-other.json      |    2 +-
>  .../arch/x86/tigerlake/virtual-memory.json    |   18 +
>  169 files changed, 38371 insertions(+), 8097 deletions(-)
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/arl-metrics.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/cache.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/floating-point.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/frontend.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/memory.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/metricgroups.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/other.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/pipeline.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-cache.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-interconnect.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-memory.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/uncore-other.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/arrowlake/virtual-memory.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/cache.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/counter.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/frontend.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/memory.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/other.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/pipeline.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/clearwaterforest/virtual-memory.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/gnr-metrics.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/graniterapids/metricgroups.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/floating-point.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/lnl-metrics.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/metricgroups.json
>  create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/uncore-memory.json
>
Re: [PATCH v2 00/23] Intel vendor events and TMA 5.01 metrics
Posted by Liang, Kan 11 months ago

On 2025-01-17 11:03 a.m., Liang, Kan wrote:
> 
> 
> On 2025-01-16 1:43 a.m., Ian Rogers wrote:
>> Update the Intel vendor events to the latest.
>> Update the metrics to TMA 5.01.
>> Add Arrowlake and Clearwaterforest support.
>> Add metrics for LNL and GNR.
>> Address IIO uncore issue spotted on EMR, GRR, GNR, SPR and SRF.
>>
>> The perf json was generated using the script:
>> https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
>> with the generated json being in:
>> https://github.com/intel/perfmon/tree/main/scripts/perf
>>
>> Thanks to Perry Taylor <perry.taylor@intel.com>, Caleb Biggers
>> <caleb.biggers@intel.com>, Edward Baker <edward.baker@intel.com> and
>> Weilin Wang <weilin.wang@intel.com> for helping get this patch series
>> together.
>>
>> v2: Fix hybrid and Co-authored-by tag issues reported by
>>     Arnaldo. Updates to Lunarlake and Meteorlake events. Addition of
>>     Clearwaterforest.
> 
> Thanks Ian!
> 
> Acked-by: Kan Liang <kan.liang@linux.intel.com>
> 

Thanks Thomas to do more tests for the series.

There is an issue for the FP_ARITH* related metrics on hybrid platforms.
I have to take the acked-by back. Sorry for the noise.

Here is the issue on ADL and ARL.

$ sudo ./perf stat -M tma_info_inst_mix_iparith -a sleep 1
Cannot resolve IDs for tma_info_inst_mix_iparith: INST_RETIRED.ANY /
(FP_ARITH_INST_RETIRED.SCALAR + FP_ARITH_INST_RETIRED.VECTOR)


The patch set add the tma_info_inst_mix_iparith for cpu_atom.

+    {
+        "BriefDescription": "Instructions per FP Arithmetic instruction
(lower number means higher occurrence rate)",
+        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR
+ FP_ARITH_INST_RETIRED.VECTOR)",
+        "MetricGroup": "Flops;InsType;Inst_Metric",
+        "MetricName": "tma_info_inst_mix_iparith",
+        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
+        "PublicDescription": "Instructions per FP Arithmetic
instruction (lower number means higher occurrence rate). Values < 1 are
possible due to intentional FMA double counting. Approximated prior to BDW",
+        "Unit": "cpu_atom"
+    },

However, the FP_ARITH_INST_RETIRED.SCALAR and
FP_ARITH_INST_RETIRED.VECTOR event are only available for cpu_core.

sudo ./perf stat -e FP_ARITH_INST_RETIRED.SCALAR -a sleep 1

 Performance counter stats for 'system wide':

                 0      cpu_core/FP_ARITH_INST_RETIRED.SCALAR/

There should be no such metric for cpu_atom.

Thanks,
Kan
Re: [PATCH v2 00/23] Intel vendor events and TMA 5.01 metrics
Posted by Ian Rogers 11 months ago
On Fri, Jan 17, 2025 at 11:10 AM Liang, Kan <kan.liang@linux.intel.com> wrote:
>
>
>
> On 2025-01-17 11:03 a.m., Liang, Kan wrote:
> >
> >
> > On 2025-01-16 1:43 a.m., Ian Rogers wrote:
> >> Update the Intel vendor events to the latest.
> >> Update the metrics to TMA 5.01.
> >> Add Arrowlake and Clearwaterforest support.
> >> Add metrics for LNL and GNR.
> >> Address IIO uncore issue spotted on EMR, GRR, GNR, SPR and SRF.
> >>
> >> The perf json was generated using the script:
> >> https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
> >> with the generated json being in:
> >> https://github.com/intel/perfmon/tree/main/scripts/perf
> >>
> >> Thanks to Perry Taylor <perry.taylor@intel.com>, Caleb Biggers
> >> <caleb.biggers@intel.com>, Edward Baker <edward.baker@intel.com> and
> >> Weilin Wang <weilin.wang@intel.com> for helping get this patch series
> >> together.
> >>
> >> v2: Fix hybrid and Co-authored-by tag issues reported by
> >>     Arnaldo. Updates to Lunarlake and Meteorlake events. Addition of
> >>     Clearwaterforest.
> >
> > Thanks Ian!
> >
> > Acked-by: Kan Liang <kan.liang@linux.intel.com>
> >
>
> Thanks Thomas to do more tests for the series.
>
> There is an issue for the FP_ARITH* related metrics on hybrid platforms.
> I have to take the acked-by back. Sorry for the noise.
>
> Here is the issue on ADL and ARL.
>
> $ sudo ./perf stat -M tma_info_inst_mix_iparith -a sleep 1
> Cannot resolve IDs for tma_info_inst_mix_iparith: INST_RETIRED.ANY /
> (FP_ARITH_INST_RETIRED.SCALAR + FP_ARITH_INST_RETIRED.VECTOR)
>
>
> The patch set add the tma_info_inst_mix_iparith for cpu_atom.
>
> +    {
> +        "BriefDescription": "Instructions per FP Arithmetic instruction
> (lower number means higher occurrence rate)",
> +        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR
> + FP_ARITH_INST_RETIRED.VECTOR)",
> +        "MetricGroup": "Flops;InsType;Inst_Metric",
> +        "MetricName": "tma_info_inst_mix_iparith",
> +        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
> +        "PublicDescription": "Instructions per FP Arithmetic
> instruction (lower number means higher occurrence rate). Values < 1 are
> possible due to intentional FMA double counting. Approximated prior to BDW",
> +        "Unit": "cpu_atom"
> +    },
>
> However, the FP_ARITH_INST_RETIRED.SCALAR and
> FP_ARITH_INST_RETIRED.VECTOR event are only available for cpu_core.
>
> sudo ./perf stat -e FP_ARITH_INST_RETIRED.SCALAR -a sleep 1
>
>  Performance counter stats for 'system wide':
>
>                  0      cpu_core/FP_ARITH_INST_RETIRED.SCALAR/
>
> There should be no such metric for cpu_atom.

Thanks Thomas and Kan!

The metric came from here:
https://github.com/intel/perfmon/blob/main/ADL/metrics/perf/alderlake_metrics_goldencove_core_perf.json#L1243
and the event being in the cpu_core will explain why it passed the
sanity check that all events are in the event json.

I believe Caleb can address the issue. I think all the events need PMU
prefixes as happened previously here:
https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py#L1535

A few more kinks to resolve in the new TMA release process, thanks for
the testing!
Ian
Re: [PATCH v2 00/23] Intel vendor events and TMA 5.01 metrics
Posted by Falcon, Thomas 11 months ago
On Fri, 2025-01-17 at 11:43 -0800, Ian Rogers wrote:
> On Fri, Jan 17, 2025 at 11:10 AM Liang, Kan
> <kan.liang@linux.intel.com> wrote:
> > 
> > 
> > 
> > On 2025-01-17 11:03 a.m., Liang, Kan wrote:
> > > 
> > > 
> > > On 2025-01-16 1:43 a.m., Ian Rogers wrote:
> > > > Update the Intel vendor events to the latest.
> > > > Update the metrics to TMA 5.01.
> > > > Add Arrowlake and Clearwaterforest support.
> > > > Add metrics for LNL and GNR.
> > > > Address IIO uncore issue spotted on EMR, GRR, GNR, SPR and SRF.
> > > > 
> > > > The perf json was generated using the script:
> > > > https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
> > > > with the generated json being in:
> > > > https://github.com/intel/perfmon/tree/main/scripts/perf
> > > > 
> > > > Thanks to Perry Taylor <perry.taylor@intel.com>, Caleb Biggers
> > > > <caleb.biggers@intel.com>, Edward Baker
> > > > <edward.baker@intel.com> and
> > > > Weilin Wang <weilin.wang@intel.com> for helping get this patch
> > > > series
> > > > together.
> > > > 
> > > > v2: Fix hybrid and Co-authored-by tag issues reported by
> > > >     Arnaldo. Updates to Lunarlake and Meteorlake events.
> > > > Addition of
> > > >     Clearwaterforest.
> > > 
> > > Thanks Ian!
> > > 
> > > Acked-by: Kan Liang <kan.liang@linux.intel.com>
> > > 
> > 
> > Thanks Thomas to do more tests for the series.
> > 
> > There is an issue for the FP_ARITH* related metrics on hybrid
> > platforms.
> > I have to take the acked-by back. Sorry for the noise.
> > 
> > Here is the issue on ADL and ARL.
> > 
> > $ sudo ./perf stat -M tma_info_inst_mix_iparith -a sleep 1
> > Cannot resolve IDs for tma_info_inst_mix_iparith: INST_RETIRED.ANY
> > /
> > (FP_ARITH_INST_RETIRED.SCALAR + FP_ARITH_INST_RETIRED.VECTOR)
> > 
> > 
> > The patch set add the tma_info_inst_mix_iparith for cpu_atom.
> > 
> > +    {
> > +        "BriefDescription": "Instructions per FP Arithmetic
> > instruction
> > (lower number means higher occurrence rate)",
> > +        "MetricExpr": "INST_RETIRED.ANY /
> > (FP_ARITH_INST_RETIRED.SCALAR
> > + FP_ARITH_INST_RETIRED.VECTOR)",
> > +        "MetricGroup": "Flops;InsType;Inst_Metric",
> > +        "MetricName": "tma_info_inst_mix_iparith",
> > +        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
> > +        "PublicDescription": "Instructions per FP Arithmetic
> > instruction (lower number means higher occurrence rate). Values < 1
> > are
> > possible due to intentional FMA double counting. Approximated prior
> > to BDW",
> > +        "Unit": "cpu_atom"
> > +    },
> > 
> > However, the FP_ARITH_INST_RETIRED.SCALAR and
> > FP_ARITH_INST_RETIRED.VECTOR event are only available for cpu_core.
> > 
> > sudo ./perf stat -e FP_ARITH_INST_RETIRED.SCALAR -a sleep 1
> > 
> >  Performance counter stats for 'system wide':
> > 
> >                  0      cpu_core/FP_ARITH_INST_RETIRED.SCALAR/
> > 
> > There should be no such metric for cpu_atom.
> 
> Thanks Thomas and Kan!
> 
> The metric came from here:
> https://github.com/intel/perfmon/blob/main/ADL/metrics/perf/alderlake_metrics_goldencove_core_perf.json#L1243
> and the event being in the cpu_core will explain why it passed the
> sanity check that all events are in the event json.
> 
> I believe Caleb can address the issue. I think all the events need
> PMU
> prefixes as happened previously here:
> https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py#L1535
> 
> A few more kinks to resolve in the new TMA release process, thanks
> for
> the testing!
> Ian


Thanks, I'm also seeing some weirdness in the perf all metrics and
metricsgroups tests with verbose output:

.../perf-tools-next/tools/perf# ./perf test 95
 95: perf all metrics test                                           :
Skip
.../perf-tools-next/tools/perf# ./perf test 95 -vvv
 95: perf all metrics test:
--- start ---
test child forked, pid 135502
Testing tma_core_bound

...

Testing tma_fp_scalar
FP issues
Cannot resolve IDs for tma_fp_scalar: FP_ARITH_INST_RETIRED.SCALAR /
(tma_retiring arch bench Build builtin-annotate.c builtin-annotate.o
builtin-bench.c builtin-bench.o builtin-buildid-cache.c builtin-
buildid-cache.o builtin-buildid-list.c builtin-buildid-list.o builtin-
c2c.c builtin-c2c.o builtin-check.c builtin-check.o builtin-config.c
builtin-config.o builtin-daemon.c builtin-daemon.o builtin-data.c
builtin-data.o builtin-diff.c builtin-diff.o builtin-evlist.c builtin-
evlist.o builtin-ftrace.c builtin-ftrace.o builtin.h builtin-help.c
builtin-help.o builtin-inject.c builtin-inject.o builtin-kallsyms.c
builtin-kallsyms.o builtin-kmem.c builtin-kmem.o builtin-kvm.c builtin-
kvm.o builtin-kwork.c builtin-kwork.o builtin-list.c builtin-list.o
builtin-lock.c builtin-lock.o builtin-mem.c builtin-mem.o builtin-
probe.c builtin-probe.o builtin-record.c builtin-record.o builtin-
report.c builtin-report.o builtin-sched.c builtin-sched.o builtin-
script.c builtin-script.o builtin-stat.c builtin-stat.o builtin-
timechart.c builtin-timechart.o builtin-top.c builtin-top.o builtin-
trace.c builtin-trace.o builtin-version.c builtin-version.o check-
header_ignore_hunks check-headers.sh check-headers.sh.shellcheck_log
command-list.txt common-cmds.h CREDITS design.txt dlfilters
Documentation FEATURE-DUMP include jvmti libapi libbpf libperf libperf-
bench.a libperf-jvmti.so libperf-test.a libperf-ui.a libperf-util.a
libpmu-events.a libsubcmd libsymbol Makefile Makefile.config
Makefile.perf MANIFEST perf perf-archive perf-archive.sh perf-
archive.sh.shellcheck_log perf-bench-in.o perf.c perf-completion.sh
perf-completion.sh.shellcheck_log perf.h perf-in.o perf-iostat perf-
iostat.sh perf-iostat.sh.shellcheck_log perf.o perf-read-vdso32 perf-
read-vdso.c perf-sys.h perf-test-in.o perf-ui-in.o perf-util-in.o PERF-
VERSION-FILE pmu-events python python_ext_build scripts tests trace ui
util tma_info_thread_slots)

...

---- end(-2) ----
 95: perf all metrics test                                           :
Skip

The * is getting replaced with the files in my working directory, which
is tools/perf, but only when running 'perf test', running 'perf stat'
just prints the error normally:

.../perf-tools-next/tools/perf# ./perf stat -M tma_fp_scalar sleep 1
Cannot resolve IDs for tma_fp_scalar: FP_ARITH_INST_RETIRED.SCALAR /
(tma_retiring * tma_info_thread_slots)

Tom