lkml.org 
[lkml]   [2017]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2017-09-11 16:05    [W:0.085 / U:4.324 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site