[PATCH v1 00/19] Intel TMA 5.1 metrics and event updates

Ian Rogers posted 19 patches 2 months, 2 weeks ago
There is a newer version of this series
.../arch/x86/alderlake/adl-metrics.json       | 104 ++++----
.../pmu-events/arch/x86/alderlake/cache.json  |  99 ++++----
.../arch/x86/alderlake/floating-point.json    |  28 +--
.../arch/x86/alderlake/frontend.json          |  42 ++--
.../pmu-events/arch/x86/alderlake/memory.json |  12 +-
.../pmu-events/arch/x86/alderlake/other.json  |   8 +-
.../arch/x86/alderlake/pipeline.json          | 163 +++++--------
.../x86/alderlake/uncore-interconnect.json    |   2 -
.../arch/x86/alderlake/virtual-memory.json    |  40 +--
.../arch/x86/alderlaken/adln-metrics.json     |  20 +-
.../x86/alderlaken/uncore-interconnect.json   |   2 -
.../arch/x86/arrowlake/arl-metrics.json       | 180 ++++++++------
.../pmu-events/arch/x86/arrowlake/cache.json  | 122 +++++++---
.../arch/x86/arrowlake/frontend.json          |  40 +--
.../pmu-events/arch/x86/arrowlake/memory.json |  22 +-
.../arch/x86/arrowlake/pipeline.json          |  94 +++++---
.../arch/x86/broadwell/bdw-metrics.json       |  30 +--
.../arch/x86/broadwellde/bdwde-metrics.json   |  30 +--
.../arch/x86/broadwellx/bdx-metrics.json      |  33 ++-
.../arch/x86/cascadelakex/clx-metrics.json    | 139 ++++++++---
.../arch/x86/emeraldrapids/cache.json         | 100 ++++----
.../arch/x86/emeraldrapids/emr-metrics.json   | 131 +++++-----
.../x86/emeraldrapids/floating-point.json     |  43 ++--
.../arch/x86/emeraldrapids/frontend.json      |  42 ++--
.../arch/x86/emeraldrapids/memory.json        |  30 +--
.../arch/x86/emeraldrapids/other.json         |  28 ++-
.../arch/x86/emeraldrapids/pipeline.json      | 167 +++++--------
.../arch/x86/emeraldrapids/uncore-memory.json |  82 +++++++
.../x86/emeraldrapids/virtual-memory.json     |  40 +--
.../arch/x86/grandridge/grr-metrics.json      |  20 +-
.../arch/x86/graniterapids/cache.json         | 227 +++++++++++++-----
.../x86/graniterapids/floating-point.json     |  43 ++--
.../arch/x86/graniterapids/frontend.json      |  42 ++--
.../arch/x86/graniterapids/gnr-metrics.json   | 131 +++++-----
.../arch/x86/graniterapids/memory.json        |  33 ++-
.../arch/x86/graniterapids/other.json         |  30 ++-
.../arch/x86/graniterapids/pipeline.json      | 167 ++++++-------
.../arch/x86/graniterapids/uncore-io.json     |   1 -
.../arch/x86/graniterapids/uncore-memory.json |  31 ---
.../x86/graniterapids/virtual-memory.json     |  40 +--
.../arch/x86/haswell/hsw-metrics.json         |  32 ++-
.../arch/x86/haswellx/hsx-metrics.json        |  35 ++-
.../arch/x86/icelake/icl-metrics.json         |  96 ++++----
.../arch/x86/icelakex/icx-metrics.json        | 155 ++++++++----
.../arch/x86/ivybridge/ivb-metrics.json       |  30 +--
.../arch/x86/ivytown/ivt-metrics.json         |  33 ++-
.../arch/x86/jaketown/jkt-metrics.json        |  20 +-
.../pmu-events/arch/x86/lunarlake/cache.json  | 104 ++++++--
.../arch/x86/lunarlake/frontend.json          |  40 +--
.../arch/x86/lunarlake/lnl-metrics.json       | 216 +++++++++--------
.../pmu-events/arch/x86/lunarlake/memory.json |  22 +-
.../arch/x86/lunarlake/pipeline.json          |  85 ++++---
.../x86/lunarlake/uncore-interconnect.json    |  10 +
.../arch/x86/lunarlake/uncore-memory.json     |   8 +
tools/perf/pmu-events/arch/x86/mapfile.csv    |  16 +-
.../pmu-events/arch/x86/meteorlake/cache.json | 129 +++++-----
.../arch/x86/meteorlake/floating-point.json   |  28 +--
.../arch/x86/meteorlake/frontend.json         |  42 ++--
.../arch/x86/meteorlake/memory.json           |  15 +-
.../arch/x86/meteorlake/mtl-metrics.json      | 103 ++++----
.../pmu-events/arch/x86/meteorlake/other.json |   5 +-
.../arch/x86/meteorlake/pipeline.json         | 173 ++++++-------
.../arch/x86/meteorlake/virtual-memory.json   |  40 +--
.../arch/x86/rocketlake/rkl-metrics.json      |  97 ++++----
.../arch/x86/sandybridge/snb-metrics.json     |  19 +-
.../arch/x86/sapphirerapids/cache.json        | 100 ++++----
.../x86/sapphirerapids/floating-point.json    |  43 ++--
.../arch/x86/sapphirerapids/frontend.json     |  42 ++--
.../arch/x86/sapphirerapids/memory.json       |  30 +--
.../arch/x86/sapphirerapids/other.json        |  28 ++-
.../arch/x86/sapphirerapids/pipeline.json     | 167 +++++--------
.../arch/x86/sapphirerapids/spr-metrics.json  | 153 +++++++-----
.../x86/sapphirerapids/uncore-memory.json     |  82 +++++++
.../x86/sapphirerapids/virtual-memory.json    |  40 +--
.../arch/x86/sierraforest/srf-metrics.json    |  20 +-
.../arch/x86/skylake/skl-metrics.json         | 101 +++++---
.../arch/x86/skylakex/skx-metrics.json        | 101 +++++---
.../arch/x86/tigerlake/tgl-metrics.json       |  97 ++++----
78 files changed, 2870 insertions(+), 2325 deletions(-)
create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/uncore-interconnect.json
[PATCH v1 00/19] Intel TMA 5.1 metrics and event updates
Posted by Ian Rogers 2 months, 2 weeks ago
Update events from:
v1.31 -> v1.33 for alderlake
v1.09 -> v1.12 for arrowlake
v1.14 -> v1.16 for emeraldrapids
v1.10 -> v1.12 for graniterpaids
v1.14 -> v1.17 for lunarlake
v1.14 -> v1.16 for meteorlake
v1.28 -> v1.30 for sapphirerapids

Update TMA 5.0 to 5.1 removing the slots event workaround as the patch series:
https://lore.kernel.org/lkml/20250719030517.1990983-1-irogers@google.com/
is assumed.

The patches are generated by:
https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
with pull requests 323 and 324 applied.

Ian Rogers (19):
  perf vendor events: Update alderlake events/metrics
  perf vendor events: Update arrowlake events/metrics
  perf vendor events: Update broadwell metrics
  perf vendor events: Update cascadelakex metrics
  perf vendor events: Update emeraldrapids events/metrics
  perf vendor events: Update grandridge metrics
  perf vendor events: Update graniterapids events/metrics
  perf vendor events: Update haswell metrics
  perf vendor events: Update icelake metrics
  perf vendor events: Update ivybridge/ivytown metrics
  perf vendor events: Update jaketown metrics
  perf vendor events: Update lunarlake events/metrics
  perf vendor events: Update meteorlake events/metrics
  perf vendor events: Update rocketlake metrics
  perf vendor events: Update sandybridge metrics
  perf vendor events: Update sapphirerapids events/metrics
  perf vendor events: Update sierraforest metrics
  perf vendor events: Update skylake metrics
  perf vendor events: Update tigerlake metrics

 .../arch/x86/alderlake/adl-metrics.json       | 104 ++++----
 .../pmu-events/arch/x86/alderlake/cache.json  |  99 ++++----
 .../arch/x86/alderlake/floating-point.json    |  28 +--
 .../arch/x86/alderlake/frontend.json          |  42 ++--
 .../pmu-events/arch/x86/alderlake/memory.json |  12 +-
 .../pmu-events/arch/x86/alderlake/other.json  |   8 +-
 .../arch/x86/alderlake/pipeline.json          | 163 +++++--------
 .../x86/alderlake/uncore-interconnect.json    |   2 -
 .../arch/x86/alderlake/virtual-memory.json    |  40 +--
 .../arch/x86/alderlaken/adln-metrics.json     |  20 +-
 .../x86/alderlaken/uncore-interconnect.json   |   2 -
 .../arch/x86/arrowlake/arl-metrics.json       | 180 ++++++++------
 .../pmu-events/arch/x86/arrowlake/cache.json  | 122 +++++++---
 .../arch/x86/arrowlake/frontend.json          |  40 +--
 .../pmu-events/arch/x86/arrowlake/memory.json |  22 +-
 .../arch/x86/arrowlake/pipeline.json          |  94 +++++---
 .../arch/x86/broadwell/bdw-metrics.json       |  30 +--
 .../arch/x86/broadwellde/bdwde-metrics.json   |  30 +--
 .../arch/x86/broadwellx/bdx-metrics.json      |  33 ++-
 .../arch/x86/cascadelakex/clx-metrics.json    | 139 ++++++++---
 .../arch/x86/emeraldrapids/cache.json         | 100 ++++----
 .../arch/x86/emeraldrapids/emr-metrics.json   | 131 +++++-----
 .../x86/emeraldrapids/floating-point.json     |  43 ++--
 .../arch/x86/emeraldrapids/frontend.json      |  42 ++--
 .../arch/x86/emeraldrapids/memory.json        |  30 +--
 .../arch/x86/emeraldrapids/other.json         |  28 ++-
 .../arch/x86/emeraldrapids/pipeline.json      | 167 +++++--------
 .../arch/x86/emeraldrapids/uncore-memory.json |  82 +++++++
 .../x86/emeraldrapids/virtual-memory.json     |  40 +--
 .../arch/x86/grandridge/grr-metrics.json      |  20 +-
 .../arch/x86/graniterapids/cache.json         | 227 +++++++++++++-----
 .../x86/graniterapids/floating-point.json     |  43 ++--
 .../arch/x86/graniterapids/frontend.json      |  42 ++--
 .../arch/x86/graniterapids/gnr-metrics.json   | 131 +++++-----
 .../arch/x86/graniterapids/memory.json        |  33 ++-
 .../arch/x86/graniterapids/other.json         |  30 ++-
 .../arch/x86/graniterapids/pipeline.json      | 167 ++++++-------
 .../arch/x86/graniterapids/uncore-io.json     |   1 -
 .../arch/x86/graniterapids/uncore-memory.json |  31 ---
 .../x86/graniterapids/virtual-memory.json     |  40 +--
 .../arch/x86/haswell/hsw-metrics.json         |  32 ++-
 .../arch/x86/haswellx/hsx-metrics.json        |  35 ++-
 .../arch/x86/icelake/icl-metrics.json         |  96 ++++----
 .../arch/x86/icelakex/icx-metrics.json        | 155 ++++++++----
 .../arch/x86/ivybridge/ivb-metrics.json       |  30 +--
 .../arch/x86/ivytown/ivt-metrics.json         |  33 ++-
 .../arch/x86/jaketown/jkt-metrics.json        |  20 +-
 .../pmu-events/arch/x86/lunarlake/cache.json  | 104 ++++++--
 .../arch/x86/lunarlake/frontend.json          |  40 +--
 .../arch/x86/lunarlake/lnl-metrics.json       | 216 +++++++++--------
 .../pmu-events/arch/x86/lunarlake/memory.json |  22 +-
 .../arch/x86/lunarlake/pipeline.json          |  85 ++++---
 .../x86/lunarlake/uncore-interconnect.json    |  10 +
 .../arch/x86/lunarlake/uncore-memory.json     |   8 +
 tools/perf/pmu-events/arch/x86/mapfile.csv    |  16 +-
 .../pmu-events/arch/x86/meteorlake/cache.json | 129 +++++-----
 .../arch/x86/meteorlake/floating-point.json   |  28 +--
 .../arch/x86/meteorlake/frontend.json         |  42 ++--
 .../arch/x86/meteorlake/memory.json           |  15 +-
 .../arch/x86/meteorlake/mtl-metrics.json      | 103 ++++----
 .../pmu-events/arch/x86/meteorlake/other.json |   5 +-
 .../arch/x86/meteorlake/pipeline.json         | 173 ++++++-------
 .../arch/x86/meteorlake/virtual-memory.json   |  40 +--
 .../arch/x86/rocketlake/rkl-metrics.json      |  97 ++++----
 .../arch/x86/sandybridge/snb-metrics.json     |  19 +-
 .../arch/x86/sapphirerapids/cache.json        | 100 ++++----
 .../x86/sapphirerapids/floating-point.json    |  43 ++--
 .../arch/x86/sapphirerapids/frontend.json     |  42 ++--
 .../arch/x86/sapphirerapids/memory.json       |  30 +--
 .../arch/x86/sapphirerapids/other.json        |  28 ++-
 .../arch/x86/sapphirerapids/pipeline.json     | 167 +++++--------
 .../arch/x86/sapphirerapids/spr-metrics.json  | 153 +++++++-----
 .../x86/sapphirerapids/uncore-memory.json     |  82 +++++++
 .../x86/sapphirerapids/virtual-memory.json    |  40 +--
 .../arch/x86/sierraforest/srf-metrics.json    |  20 +-
 .../arch/x86/skylake/skl-metrics.json         | 101 +++++---
 .../arch/x86/skylakex/skx-metrics.json        | 101 +++++---
 .../arch/x86/tigerlake/tgl-metrics.json       |  97 ++++----
 78 files changed, 2870 insertions(+), 2325 deletions(-)
 create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/uncore-interconnect.json

-- 
2.50.0.727.gbf7dc18ff4-goog
Re: [PATCH v1 00/19] Intel TMA 5.1 metrics and event updates
Posted by Falcon, Thomas 2 months, 2 weeks ago
On Fri, 2025-07-18 at 20:44 -0700, Ian Rogers wrote:
> Update events from:
> v1.31 -> v1.33 for alderlake
> v1.09 -> v1.12 for arrowlake
> v1.14 -> v1.16 for emeraldrapids
> v1.10 -> v1.12 for graniterpaids
> v1.14 -> v1.17 for lunarlake
> v1.14 -> v1.16 for meteorlake
> v1.28 -> v1.30 for sapphirerapids
> 
> Update TMA 5.0 to 5.1 removing the slots event workaround as the patch series:
> https://lore.kernel.org/lkml/20250719030517.1990983-1-irogers@google.com/
> is assumed.
> 
> The patches are generated by:
> https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
> with pull requests 323 and 324 applied.
> 

Hi Ian, metrics tests look good on my alder lake and arrow lake.

Tested-by: Thomas Falcon <thomas.falcon@intel.com>

Thanks,
Tom

> Ian Rogers (19):
>   perf vendor events: Update alderlake events/metrics
>   perf vendor events: Update arrowlake events/metrics
>   perf vendor events: Update broadwell metrics
>   perf vendor events: Update cascadelakex metrics
>   perf vendor events: Update emeraldrapids events/metrics
>   perf vendor events: Update grandridge metrics
>   perf vendor events: Update graniterapids events/metrics
>   perf vendor events: Update haswell metrics
>   perf vendor events: Update icelake metrics
>   perf vendor events: Update ivybridge/ivytown metrics
>   perf vendor events: Update jaketown metrics
>   perf vendor events: Update lunarlake events/metrics
>   perf vendor events: Update meteorlake events/metrics
>   perf vendor events: Update rocketlake metrics
>   perf vendor events: Update sandybridge metrics
>   perf vendor events: Update sapphirerapids events/metrics
>   perf vendor events: Update sierraforest metrics
>   perf vendor events: Update skylake metrics
>   perf vendor events: Update tigerlake metrics
> 
>  .../arch/x86/alderlake/adl-metrics.json       | 104 ++++----
>  .../pmu-events/arch/x86/alderlake/cache.json  |  99 ++++----
>  .../arch/x86/alderlake/floating-point.json    |  28 +--
>  .../arch/x86/alderlake/frontend.json          |  42 ++--
>  .../pmu-events/arch/x86/alderlake/memory.json |  12 +-
>  .../pmu-events/arch/x86/alderlake/other.json  |   8 +-
>  .../arch/x86/alderlake/pipeline.json          | 163 +++++--------
>  .../x86/alderlake/uncore-interconnect.json    |   2 -
>  .../arch/x86/alderlake/virtual-memory.json    |  40 +--
>  .../arch/x86/alderlaken/adln-metrics.json     |  20 +-
>  .../x86/alderlaken/uncore-interconnect.json   |   2 -
>  .../arch/x86/arrowlake/arl-metrics.json       | 180 ++++++++------
>  .../pmu-events/arch/x86/arrowlake/cache.json  | 122 +++++++---
>  .../arch/x86/arrowlake/frontend.json          |  40 +--
>  .../pmu-events/arch/x86/arrowlake/memory.json |  22 +-
>  .../arch/x86/arrowlake/pipeline.json          |  94 +++++---
>  .../arch/x86/broadwell/bdw-metrics.json       |  30 +--
>  .../arch/x86/broadwellde/bdwde-metrics.json   |  30 +--
>  .../arch/x86/broadwellx/bdx-metrics.json      |  33 ++-
>  .../arch/x86/cascadelakex/clx-metrics.json    | 139 ++++++++---
>  .../arch/x86/emeraldrapids/cache.json         | 100 ++++----
>  .../arch/x86/emeraldrapids/emr-metrics.json   | 131 +++++-----
>  .../x86/emeraldrapids/floating-point.json     |  43 ++--
>  .../arch/x86/emeraldrapids/frontend.json      |  42 ++--
>  .../arch/x86/emeraldrapids/memory.json        |  30 +--
>  .../arch/x86/emeraldrapids/other.json         |  28 ++-
>  .../arch/x86/emeraldrapids/pipeline.json      | 167 +++++--------
>  .../arch/x86/emeraldrapids/uncore-memory.json |  82 +++++++
>  .../x86/emeraldrapids/virtual-memory.json     |  40 +--
>  .../arch/x86/grandridge/grr-metrics.json      |  20 +-
>  .../arch/x86/graniterapids/cache.json         | 227 +++++++++++++-----
>  .../x86/graniterapids/floating-point.json     |  43 ++--
>  .../arch/x86/graniterapids/frontend.json      |  42 ++--
>  .../arch/x86/graniterapids/gnr-metrics.json   | 131 +++++-----
>  .../arch/x86/graniterapids/memory.json        |  33 ++-
>  .../arch/x86/graniterapids/other.json         |  30 ++-
>  .../arch/x86/graniterapids/pipeline.json      | 167 ++++++-------
>  .../arch/x86/graniterapids/uncore-io.json     |   1 -
>  .../arch/x86/graniterapids/uncore-memory.json |  31 ---
>  .../x86/graniterapids/virtual-memory.json     |  40 +--
>  .../arch/x86/haswell/hsw-metrics.json         |  32 ++-
>  .../arch/x86/haswellx/hsx-metrics.json        |  35 ++-
>  .../arch/x86/icelake/icl-metrics.json         |  96 ++++----
>  .../arch/x86/icelakex/icx-metrics.json        | 155 ++++++++----
>  .../arch/x86/ivybridge/ivb-metrics.json       |  30 +--
>  .../arch/x86/ivytown/ivt-metrics.json         |  33 ++-
>  .../arch/x86/jaketown/jkt-metrics.json        |  20 +-
>  .../pmu-events/arch/x86/lunarlake/cache.json  | 104 ++++++--
>  .../arch/x86/lunarlake/frontend.json          |  40 +--
>  .../arch/x86/lunarlake/lnl-metrics.json       | 216 +++++++++--------
>  .../pmu-events/arch/x86/lunarlake/memory.json |  22 +-
>  .../arch/x86/lunarlake/pipeline.json          |  85 ++++---
>  .../x86/lunarlake/uncore-interconnect.json    |  10 +
>  .../arch/x86/lunarlake/uncore-memory.json     |   8 +
>  tools/perf/pmu-events/arch/x86/mapfile.csv    |  16 +-
>  .../pmu-events/arch/x86/meteorlake/cache.json | 129 +++++-----
>  .../arch/x86/meteorlake/floating-point.json   |  28 +--
>  .../arch/x86/meteorlake/frontend.json         |  42 ++--
>  .../arch/x86/meteorlake/memory.json           |  15 +-
>  .../arch/x86/meteorlake/mtl-metrics.json      | 103 ++++----
>  .../pmu-events/arch/x86/meteorlake/other.json |   5 +-
>  .../arch/x86/meteorlake/pipeline.json         | 173 ++++++-------
>  .../arch/x86/meteorlake/virtual-memory.json   |  40 +--
>  .../arch/x86/rocketlake/rkl-metrics.json      |  97 ++++----
>  .../arch/x86/sandybridge/snb-metrics.json     |  19 +-
>  .../arch/x86/sapphirerapids/cache.json        | 100 ++++----
>  .../x86/sapphirerapids/floating-point.json    |  43 ++--
>  .../arch/x86/sapphirerapids/frontend.json     |  42 ++--
>  .../arch/x86/sapphirerapids/memory.json       |  30 +--
>  .../arch/x86/sapphirerapids/other.json        |  28 ++-
>  .../arch/x86/sapphirerapids/pipeline.json     | 167 +++++--------
>  .../arch/x86/sapphirerapids/spr-metrics.json  | 153 +++++++-----
>  .../x86/sapphirerapids/uncore-memory.json     |  82 +++++++
>  .../x86/sapphirerapids/virtual-memory.json    |  40 +--
>  .../arch/x86/sierraforest/srf-metrics.json    |  20 +-
>  .../arch/x86/skylake/skl-metrics.json         | 101 +++++---
>  .../arch/x86/skylakex/skx-metrics.json        | 101 +++++---
>  .../arch/x86/tigerlake/tgl-metrics.json       |  97 ++++----
>  78 files changed, 2870 insertions(+), 2325 deletions(-)
>  create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/uncore-interconnect.json
> 

Re: [PATCH v1 00/19] Intel TMA 5.1 metrics and event updates
Posted by Namhyung Kim 2 months, 2 weeks ago
On Tue, Jul 22, 2025 at 06:14:30PM +0000, Falcon, Thomas wrote:
> On Fri, 2025-07-18 at 20:44 -0700, Ian Rogers wrote:
> > Update events from:
> > v1.31 -> v1.33 for alderlake
> > v1.09 -> v1.12 for arrowlake
> > v1.14 -> v1.16 for emeraldrapids
> > v1.10 -> v1.12 for graniterpaids
> > v1.14 -> v1.17 for lunarlake
> > v1.14 -> v1.16 for meteorlake
> > v1.28 -> v1.30 for sapphirerapids
> > 
> > Update TMA 5.0 to 5.1 removing the slots event workaround as the patch series:
> > https://lore.kernel.org/lkml/20250719030517.1990983-1-irogers@google.com/
> > is assumed.

So I'll merge this series after the above patchset.

> > 
> > The patches are generated by:
> > https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py
> > with pull requests 323 and 324 applied.
> > 
> 
> Hi Ian, metrics tests look good on my alder lake and arrow lake.
> 
> Tested-by: Thomas Falcon <thomas.falcon@intel.com>

Thanks for the test!
Namhyung

> 
> > Ian Rogers (19):
> >   perf vendor events: Update alderlake events/metrics
> >   perf vendor events: Update arrowlake events/metrics
> >   perf vendor events: Update broadwell metrics
> >   perf vendor events: Update cascadelakex metrics
> >   perf vendor events: Update emeraldrapids events/metrics
> >   perf vendor events: Update grandridge metrics
> >   perf vendor events: Update graniterapids events/metrics
> >   perf vendor events: Update haswell metrics
> >   perf vendor events: Update icelake metrics
> >   perf vendor events: Update ivybridge/ivytown metrics
> >   perf vendor events: Update jaketown metrics
> >   perf vendor events: Update lunarlake events/metrics
> >   perf vendor events: Update meteorlake events/metrics
> >   perf vendor events: Update rocketlake metrics
> >   perf vendor events: Update sandybridge metrics
> >   perf vendor events: Update sapphirerapids events/metrics
> >   perf vendor events: Update sierraforest metrics
> >   perf vendor events: Update skylake metrics
> >   perf vendor events: Update tigerlake metrics
> > 
> >  .../arch/x86/alderlake/adl-metrics.json       | 104 ++++----
> >  .../pmu-events/arch/x86/alderlake/cache.json  |  99 ++++----
> >  .../arch/x86/alderlake/floating-point.json    |  28 +--
> >  .../arch/x86/alderlake/frontend.json          |  42 ++--
> >  .../pmu-events/arch/x86/alderlake/memory.json |  12 +-
> >  .../pmu-events/arch/x86/alderlake/other.json  |   8 +-
> >  .../arch/x86/alderlake/pipeline.json          | 163 +++++--------
> >  .../x86/alderlake/uncore-interconnect.json    |   2 -
> >  .../arch/x86/alderlake/virtual-memory.json    |  40 +--
> >  .../arch/x86/alderlaken/adln-metrics.json     |  20 +-
> >  .../x86/alderlaken/uncore-interconnect.json   |   2 -
> >  .../arch/x86/arrowlake/arl-metrics.json       | 180 ++++++++------
> >  .../pmu-events/arch/x86/arrowlake/cache.json  | 122 +++++++---
> >  .../arch/x86/arrowlake/frontend.json          |  40 +--
> >  .../pmu-events/arch/x86/arrowlake/memory.json |  22 +-
> >  .../arch/x86/arrowlake/pipeline.json          |  94 +++++---
> >  .../arch/x86/broadwell/bdw-metrics.json       |  30 +--
> >  .../arch/x86/broadwellde/bdwde-metrics.json   |  30 +--
> >  .../arch/x86/broadwellx/bdx-metrics.json      |  33 ++-
> >  .../arch/x86/cascadelakex/clx-metrics.json    | 139 ++++++++---
> >  .../arch/x86/emeraldrapids/cache.json         | 100 ++++----
> >  .../arch/x86/emeraldrapids/emr-metrics.json   | 131 +++++-----
> >  .../x86/emeraldrapids/floating-point.json     |  43 ++--
> >  .../arch/x86/emeraldrapids/frontend.json      |  42 ++--
> >  .../arch/x86/emeraldrapids/memory.json        |  30 +--
> >  .../arch/x86/emeraldrapids/other.json         |  28 ++-
> >  .../arch/x86/emeraldrapids/pipeline.json      | 167 +++++--------
> >  .../arch/x86/emeraldrapids/uncore-memory.json |  82 +++++++
> >  .../x86/emeraldrapids/virtual-memory.json     |  40 +--
> >  .../arch/x86/grandridge/grr-metrics.json      |  20 +-
> >  .../arch/x86/graniterapids/cache.json         | 227 +++++++++++++-----
> >  .../x86/graniterapids/floating-point.json     |  43 ++--
> >  .../arch/x86/graniterapids/frontend.json      |  42 ++--
> >  .../arch/x86/graniterapids/gnr-metrics.json   | 131 +++++-----
> >  .../arch/x86/graniterapids/memory.json        |  33 ++-
> >  .../arch/x86/graniterapids/other.json         |  30 ++-
> >  .../arch/x86/graniterapids/pipeline.json      | 167 ++++++-------
> >  .../arch/x86/graniterapids/uncore-io.json     |   1 -
> >  .../arch/x86/graniterapids/uncore-memory.json |  31 ---
> >  .../x86/graniterapids/virtual-memory.json     |  40 +--
> >  .../arch/x86/haswell/hsw-metrics.json         |  32 ++-
> >  .../arch/x86/haswellx/hsx-metrics.json        |  35 ++-
> >  .../arch/x86/icelake/icl-metrics.json         |  96 ++++----
> >  .../arch/x86/icelakex/icx-metrics.json        | 155 ++++++++----
> >  .../arch/x86/ivybridge/ivb-metrics.json       |  30 +--
> >  .../arch/x86/ivytown/ivt-metrics.json         |  33 ++-
> >  .../arch/x86/jaketown/jkt-metrics.json        |  20 +-
> >  .../pmu-events/arch/x86/lunarlake/cache.json  | 104 ++++++--
> >  .../arch/x86/lunarlake/frontend.json          |  40 +--
> >  .../arch/x86/lunarlake/lnl-metrics.json       | 216 +++++++++--------
> >  .../pmu-events/arch/x86/lunarlake/memory.json |  22 +-
> >  .../arch/x86/lunarlake/pipeline.json          |  85 ++++---
> >  .../x86/lunarlake/uncore-interconnect.json    |  10 +
> >  .../arch/x86/lunarlake/uncore-memory.json     |   8 +
> >  tools/perf/pmu-events/arch/x86/mapfile.csv    |  16 +-
> >  .../pmu-events/arch/x86/meteorlake/cache.json | 129 +++++-----
> >  .../arch/x86/meteorlake/floating-point.json   |  28 +--
> >  .../arch/x86/meteorlake/frontend.json         |  42 ++--
> >  .../arch/x86/meteorlake/memory.json           |  15 +-
> >  .../arch/x86/meteorlake/mtl-metrics.json      | 103 ++++----
> >  .../pmu-events/arch/x86/meteorlake/other.json |   5 +-
> >  .../arch/x86/meteorlake/pipeline.json         | 173 ++++++-------
> >  .../arch/x86/meteorlake/virtual-memory.json   |  40 +--
> >  .../arch/x86/rocketlake/rkl-metrics.json      |  97 ++++----
> >  .../arch/x86/sandybridge/snb-metrics.json     |  19 +-
> >  .../arch/x86/sapphirerapids/cache.json        | 100 ++++----
> >  .../x86/sapphirerapids/floating-point.json    |  43 ++--
> >  .../arch/x86/sapphirerapids/frontend.json     |  42 ++--
> >  .../arch/x86/sapphirerapids/memory.json       |  30 +--
> >  .../arch/x86/sapphirerapids/other.json        |  28 ++-
> >  .../arch/x86/sapphirerapids/pipeline.json     | 167 +++++--------
> >  .../arch/x86/sapphirerapids/spr-metrics.json  | 153 +++++++-----
> >  .../x86/sapphirerapids/uncore-memory.json     |  82 +++++++
> >  .../x86/sapphirerapids/virtual-memory.json    |  40 +--
> >  .../arch/x86/sierraforest/srf-metrics.json    |  20 +-
> >  .../arch/x86/skylake/skl-metrics.json         | 101 +++++---
> >  .../arch/x86/skylakex/skx-metrics.json        | 101 +++++---
> >  .../arch/x86/tigerlake/tgl-metrics.json       |  97 ++++----
> >  78 files changed, 2870 insertions(+), 2325 deletions(-)
> >  create mode 100644 tools/perf/pmu-events/arch/x86/lunarlake/uncore-interconnect.json
> > 
>
Re: [PATCH v1 00/19] Intel TMA 5.1 metrics and event updates
Posted by Namhyung Kim 2 months, 1 week ago
On Tue, Jul 22, 2025 at 06:05:38PM -0700, Namhyung Kim wrote:
> On Tue, Jul 22, 2025 at 06:14:30PM +0000, Falcon, Thomas wrote:
> > On Fri, 2025-07-18 at 20:44 -0700, Ian Rogers wrote:
> > > Update events from:
> > > v1.31 -> v1.33 for alderlake
> > > v1.09 -> v1.12 for arrowlake
> > > v1.14 -> v1.16 for emeraldrapids
> > > v1.10 -> v1.12 for graniterpaids
> > > v1.14 -> v1.17 for lunarlake
> > > v1.14 -> v1.16 for meteorlake
> > > v1.28 -> v1.30 for sapphirerapids
> > > 
> > > Update TMA 5.0 to 5.1 removing the slots event workaround as the patch series:
> > > https://lore.kernel.org/lkml/20250719030517.1990983-1-irogers@google.com/
> > > is assumed.
> 
> So I'll merge this series after the above patchset.

Now I'm seeing this on my AMD machine.

  Found metric 'tma_info_system_cpu_utilization'                                  
  metric expr cpu_atom@CPU_CLK_UNHALTED.REF_TSC@ / msr@tsc\,cpu\=cpu_atom@ for tma_info_system_cpu_utilization
  metric expr tma_info_system_cpus_utilized / #num_cpus_online for tma_info_system_cpu_utilization
  metric expr cpu_core@CPU_CLK_UNHALTED.REF_TSC@ / msr@tsc\,cpu\=cpu_core@ for tma_info_system_cpus_utilized
  found event msr@tsc,cpu=cpu_core@                                               
  found event cpu_core@CPU_CLK_UNHALTED.REF_TSC@                                  
  Parsing metric events '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!3/,cpu_core/CPU_CLK_UNHALTED.REF_TSC,metric-id=cpu_core!3CPU_CLK_UNHALTED.REF_TSC!3/}:W'
  event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
                        \___ Bad event or PMU                                     
                                                                                  
  Unable to find PMU or event on a PMU of 'msr'                                   
                                                                                  
  event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
                                    \___ not a valid PMU or CPU number            
                                                                                  
  event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
                                    \___ not a valid PMU or CPU number            
                                                                                  
  event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
                                    \___ not a valid PMU or CPU number            
                                                                                  
  event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
                                    \___ not a valid PMU or CPU number            
  Broken metric tma_info_system_cpu_utilization                                   
  ---- end(-1) ----                                                               
    9.3: Parsing of PMU event table metrics                            : FAILED! 
  
  parsing 'tma_info_mem_mix_memload_ratio': '1e3 * cpu_atom@MEM_UOPS_RETIRED.ALL_LOADS@ / cpu_atom@UOPS_RETIRED.ALL@'
  parsing 'tma_info_serialization_%_tpause_cycles': '100 * cpu_atom@SERIALIZATION.C01_MS_SCB@ / (5 * cpu_atom@CPU_CLK_UNHALTED.CORE@)'
  parsing 'tma_info_system_cpu_utilization': 'cpu_atom@CPU_CLK_UNHALTED.REF_TSC@ / msr@tsc\,cpu\=cpu_atom@'
  check_parse_fake failed                                                         
  ---- end(-1) ----                                                               
    9.4: Parsing of PMU event table metrics with fake PMUs             : FAILED!

Thanks,
Namhyung
Re: [PATCH v1 00/19] Intel TMA 5.1 metrics and event updates
Posted by Namhyung Kim 2 months, 1 week ago
On Sat, Jul 26, 2025 at 04:34:00PM -0700, Ian Rogers wrote:
> On Sat, Jul 26, 2025 at 03:34:09PM -0700, Namhyung Kim wrote:
> > On Tue, Jul 22, 2025 at 06:05:38PM -0700, Namhyung Kim wrote:
> > > On Tue, Jul 22, 2025 at 06:14:30PM +0000, Falcon, Thomas wrote:
> > > > On Fri, 2025-07-18 at 20:44 -0700, Ian Rogers wrote:
> > > > > Update events from:
> > > > > v1.31 -> v1.33 for alderlake
> > > > > v1.09 -> v1.12 for arrowlake
> > > > > v1.14 -> v1.16 for emeraldrapids
> > > > > v1.10 -> v1.12 for graniterpaids
> > > > > v1.14 -> v1.17 for lunarlake
> > > > > v1.14 -> v1.16 for meteorlake
> > > > > v1.28 -> v1.30 for sapphirerapids
> > > > > 
> > > > > Update TMA 5.0 to 5.1 removing the slots event workaround as the patch series:
> > > > > https://lore.kernel.org/lkml/20250719030517.1990983-1-irogers@google.com/
> > > > > is assumed.
> > > 
> > > So I'll merge this series after the above patchset.
> > 
> > Now I'm seeing this on my AMD machine.
> > 
> >   Found metric 'tma_info_system_cpu_utilization'                                  
> >   metric expr cpu_atom@CPU_CLK_UNHALTED.REF_TSC@ / msr@tsc\,cpu\=cpu_atom@ for tma_info_system_cpu_utilization
> >   metric expr tma_info_system_cpus_utilized / #num_cpus_online for tma_info_system_cpu_utilization
> >   metric expr cpu_core@CPU_CLK_UNHALTED.REF_TSC@ / msr@tsc\,cpu\=cpu_core@ for tma_info_system_cpus_utilized
> >   found event msr@tsc,cpu=cpu_core@                                               
> >   found event cpu_core@CPU_CLK_UNHALTED.REF_TSC@                                  
> >   Parsing metric events '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!3/,cpu_core/CPU_CLK_UNHALTED.REF_TSC,metric-id=cpu_core!3CPU_CLK_UNHALTED.REF_TSC!3/}:W'
> >   event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
> >                         \___ Bad event or PMU                                     
> >                                                                                   
> >   Unable to find PMU or event on a PMU of 'msr'                                   
> >                                                                                   
> >   event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
> >                                     \___ not a valid PMU or CPU number            
> >                                                                                   
> >   event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
> >                                     \___ not a valid PMU or CPU number            
> >                                                                                   
> >   event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
> >                                     \___ not a valid PMU or CPU number            
> >                                                                                   
> >   event syntax error: '{msr/tsc,cpu=cpu_core,metric-id=msr!3tsc!0cpu!2cpu_core!..'
> >                                     \___ not a valid PMU or CPU number            
> >   Broken metric tma_info_system_cpu_utilization                                   
> >   ---- end(-1) ----                                                               
> >     9.3: Parsing of PMU event table metrics                            : FAILED! 
> >   
> >   parsing 'tma_info_mem_mix_memload_ratio': '1e3 * cpu_atom@MEM_UOPS_RETIRED.ALL_LOADS@ / cpu_atom@UOPS_RETIRED.ALL@'
> >   parsing 'tma_info_serialization_%_tpause_cycles': '100 * cpu_atom@SERIALIZATION.C01_MS_SCB@ / (5 * cpu_atom@CPU_CLK_UNHALTED.CORE@)'
> >   parsing 'tma_info_system_cpu_utilization': 'cpu_atom@CPU_CLK_UNHALTED.REF_TSC@ / msr@tsc\,cpu\=cpu_atom@'
> >   check_parse_fake failed                                                         
> >   ---- end(-1) ----                                                               
> >     9.4: Parsing of PMU event table metrics with fake PMUs             : FAILED!

> Sorry for this. The parse state says whether fake pmus are used.
> Parse events needs updating for things like get_config_cpu so that
> failing to find a pmu is ignored with fake pmus enabled. Sorry for
> this, it is exposed in the updated metrics but the issue was caused
> by the prior series adding the support in the term.

No problem.  I've removed this series from the tree and we can fix the
issue once you're back.  Then add the metrics later.

Thanks,
Namhyung