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

From: Andi Kleen
Date: Fri Sep 08 2017 - 15:08:52 EST


> > PERF_CPUID=GenuineIntel-...
> >
> > See the mapfile.csv for valid codes
> >
> > But it's quite a few.
>
> yeah, I'm testing on the ones I have access and on a Skylake machine I'm having
> trouble, see below.
> [root@seventh ~]# perf stat -vv --metric-only -M Summary -a sleep 1

The problem is that your kernel is missing the msr// PMU.

It should work with a newer kernel.

I can look at better error messages.

-Andi