Re: [PATCH v1] perf jevents: Add cpuid to model lookup command
From: Arnaldo Carvalho de Melo
Date: Wed Sep 04 2024 - 09:53:37 EST
On Tue, Sep 03, 2024 at 09:43:51PM -0700, Ian Rogers wrote:
> When restricting jevents generated json lookup code with JEVENTS_MODEL
> a list of models must be provided. Some builds don't know model names
> but know cpuids. Add a command that can convert a cpuid to a model
> using mapfile.csv files. This can be used with JEVENTS_MODEL like:
>
> ```
> $ make JEVENTS_MODEL=`./pmu-events/models.py x86 'GenuineIntel-6-8D-1,AuthenticAMD-26-1' pmu-events/arch/`
> ```
thanks, applied, added:
Committer testing:
$ tools/perf/pmu-events/models.py x86 'GenuineIntel-6-8D-1,AuthenticAMD-26-1' tools/perf/pmu-events/arch/
tigerlake,amdzen5
$ perf stat -v sleep 1 |& head -1
Using CPUID GenuineIntel-6-B7-1
$ tools/perf/pmu-events/models.py x86 'GenuineIntel-6-B7-1' tools/perf/pmu-events/arch/
alderlake
$
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
Tested-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
- Arnaldo