Re: [PATCH v3 06/11] perf, tools, stat: Support JSON metrics in perf stat

From: Andi Kleen
Date: Tue Sep 05 2017 - 16:37:16 EST


On Tue, Sep 05, 2017 at 05:07:09PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, Sep 05, 2017 at 12:52:35PM -0700, Andi Kleen escreveu:
> > > > I'll check.
> > >
> > > Ok, I couldn't reproduce it anymore, after you check this, please let me
> > > know if I should pull that perf/intel-json-metrics-2 branch so that
> > > someone wanting to test this can have it all in one place, ok?
> >
> > Sure please pull.
> >
> > The only missing thing are metrics for Skylake Server, but I can
> > submit those later.
>
> Ok, so I looked at the commit logs and found them rather dull, how is
> that option to fake a CPU so that the tool thinks it is running on some
> specific machine (broadwell, skylake, etc) so that I can augment those
> with the output of 'perf list metricgroup' for each of them?

PERF_CPUID=GenuineIntel-...

See the mapfile.csv for valid codes

But it's quite a few.

-Andi