Re: [PATCH v5 00/24] Intel vendor events and TMA 5.01 metrics

From: Ian Rogers
Date: Wed Feb 05 2025 - 15:48:12 EST


On Wed, Feb 5, 2025 at 11:44 AM Falcon, Thomas <thomas.falcon@xxxxxxxxx> wrote:
>
> On Wed, 2025-02-05 at 09:31 -0800, 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@xxxxxxxxx>, Caleb Biggers
> > <caleb.biggers@xxxxxxxxx>, Edward Baker <edward.baker@xxxxxxxxx>,
> > Weilin Wang <weilin.wang@xxxxxxxxx>, Kan Liang
> > <kan.liang@xxxxxxxxxxxxxxx> and Thomas Falcon
> > <thomas.falcon@xxxxxxxxx> for helping get this patch series together.
> >
> > v5: Remove Valkyrie metrics mistakenly added on atom. Ensure "perf
> > all
> > metrics test" doesn't skip for missing events.
> > v4: Fix TSC events on hybrid mistakenly specifying the core PMU
> > inhibiting the use of the msr PMU.
> > v3: Fixes for hybrid metrics that were missing PMU. Update to the
> > latest events.
> > v2: Fix hybrid and Co-authored-by tag issues reported by
> > Arnaldo. Updates to Lunarlake and Meteorlake events. Addition of
> > Clearwaterforest.
> >
>
> Thanks, I'm seeing some errors during the perf all metrics test:
>
> Metric 'tma_info_system_cpus_utilized' not printed in:
> event syntax error: '{cpu_core/TSC,metric-
> id=cpu_core!3TSC!3/,cpu_core/CPU_CL..'
> \___ Bad event or PMU
>
> Unable to find PMU or event on a PMU of 'cpu_core'
>
> event syntax error: '{cpu_core/TSC,metric-
> id=cpu_core!3TSC!3/,cpu_core/CPU_CL..'
> \___ unknown term 'TSC' for pmu
> 'cpu_core'
>
> valid terms:
> event,pc,edge,offcore_rsp,ldlat,inv,umask,frontend,cmask,config,config1
> ,config2,config3,name,period,percore,metric-id
>
> event syntax error: '{cpu_core/TSC,metric-
> id=cpu_core!3TSC!3/,cpu_core/CPU_CL..'
> \___ unknown term 'TSC' for pmu
> 'cpu_core'
>
> valid terms:
> event,pc,edge,offcore_rsp,ldlat,inv,umask,frontend,cmask,config,config1
> ,config2,config3,name,period,percore,metric-id
>
> There are all some errors like this,
>
> Testing tma_cisc
> Metric contains missing events
> Cannot resolve IDs for tma_cisc: cpu_atom@TOPDOWN_FE_BOUND.CISC@ / (5 *
> cpu_atom@CPU_CLK_UNHALTED.CORE@)
>

Thanks, I forgot to reapply the TSC fix. You can do it with
$ find tools/perf/pmu-events/arch/x86 -type f -exec sed -i
's/cpu_core@TSC@/TSC/g' {} \;
I can't eyeball this later missing events problem. What model type
does it happen on?

Thanks,
Ian