[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zthk895rlxYbUbMl@x1>
Date: Wed, 4 Sep 2024 10:47:31 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>, linux-kernel@...r.kernel.org,
linux-perf-users@...r.kernel.org
Subject: Re: [PATCH v1] perf jevents: Add cpuid to model lookup command
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@...gle.com>
Tested-by: Arnaldo Carvalho de Melo <acme@...hat.com>
- Arnaldo
Powered by blists - more mailing lists