From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbdIEST5 (ORCPT ); Tue, 5 Sep 2017 14:19:57 -0400 Received: from mga06.intel.com ([134.134.136.31]:39746 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752157AbdIESTx (ORCPT ); Tue, 5 Sep 2017 14:19:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,480,1498546800"; d="scan'208";a="1011223451" Date: Tue, 5 Sep 2017 11:19:52 -0700 From: Andi Kleen To: Arnaldo Carvalho de Melo Cc: Andi Kleen , jolsa@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 06/11] perf, tools, stat: Support JSON metrics in perf stat Message-ID: <20170905181952.GV28715@tassilo.jf.intel.com> References: <20170831194036.30146-1-andi@firstfloor.org> <20170831194036.30146-7-andi@firstfloor.org> <20170904171128.GB22298@kernel.org> <20170904173725.GU2482@two.firstfloor.org> <20170905180919.GG22298@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170905180919.GG22298@kernel.org> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 05, 2017 at 03:09:19PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 04, 2017 at 10:37:25AM -0700, Andi Kleen escreveu: > > On Mon, Sep 04, 2017 at 02:11:28PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Thu, Aug 31, 2017 at 12:40:31PM -0700, Andi Kleen escreveu: > > > > The actual JSON metrics are in a separate pull request. > > > > > > Yeah, I noticed when trying to test it :-\ > > > > > > Was this pull req submitted? > > > > Not yet. I was waiting to finish review. > > > > It makes perf crash until you apply the metricgroup patchkit first. > > > > But you can get it here > > > > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git perf/intel-json-metrics-2 > > Ok, so I tried installing the Broadwell ones (one of my test machines) > and got into: I would suggest to apply all the patches from the patchkit before you test. Some of the later ones add/fix stuff needed by some of the metrics. > > [root@jouet ~]# perf stat -M Pipeline flops > bpf: builtin compilation failed: -95, try external compiler > ERROR: problems with path cpu/uops_executed.c: No such file or directory > Cannot set up events {uops_retired.retire_slots,inst_retired.any}:W,{inst_retired.any,cycles}:W,{uops_executed.thread,cpu/uops_executed.core,cmask=1/,uops_executed.cycles_ge_1_uop_exec}:W > > Usage: perf stat [] [] > > -M, --metrics > monitor specified metrics or metric groups (separated by ,) > [root@jouet ~]# perf stat -M Pipeline flops > > > Wasn't this already fixed? Yes that was supposed to be fixed with commit 77d0871c76bad1093a3d86870fe76dd1ad0ca397 Author: Andi Kleen Date: Fri Aug 11 16:26:19 2017 -0700 perf bpf: Tighten detection of BPF events perf stat -e cpu/uops_executed.core,cmask=1/ I'll check. -Andi