Messages in this thread | | | Date | Mon, 11 Sep 2017 11:05:01 -0300 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH v3 06/11] perf, tools, stat: Support JSON metrics in perf stat |
| |
Em Fri, Sep 08, 2017 at 12:08:48PM -0700, Andi Kleen escreveu: > > > 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.
Yes:
[root@seventh ~]# uname -r 4.12.0-rc6+ [root@seventh ~]# perf stat --metric-only -M Summary -a sleep 1
Performance counter stats for 'system wide':
Instructions CPI CLKS CPU_Utilization GFLOPs SMT_2T_Utilization Kernel_Utilization 34021097.0 0.0 119424171.0 0.0 0.0 0.0 0.0
1.001001793 seconds time elapsed
[root@seventh ~]#
> I can look at better error messages.
Please do,
Thanks!
- Arnaldo
| |