From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758241AbdCUTuD (ORCPT ); Tue, 21 Mar 2017 15:50:03 -0400 Received: from mga02.intel.com ([134.134.136.20]:16020 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757684AbdCUTuB (ORCPT ); Tue, 21 Mar 2017 15:50:01 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,201,1486454400"; d="scan'208";a="79097641" Date: Tue, 21 Mar 2017 12:49:48 -0700 From: Andi Kleen To: Arnaldo Carvalho de Melo Cc: Andi Kleen , Jiri Olsa , jolsa@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric Message-ID: <20170321194948.GT32070@tassilo.jf.intel.com> References: <20170320201711.14142-1-andi@firstfloor.org> <20170320201711.14142-11-andi@firstfloor.org> <20170321144836.GA6931@krava> <20170321154522.GK14380@two.firstfloor.org> <20170321194245.GI3641@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170321194245.GI3641@kernel.org> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 21, 2017 at 04:42:45PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 21, 2017 at 08:45:22AM -0700, Andi Kleen escreveu: > > > > % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' --metric-only > > > > 1.000127077 0.9 > > > > 2.000301436 0.7 > > > > 3.000456379 0.0 > > > > > > The comment above suggest I'll see 'original event as description' in this example?? > > > > Yes the latest code prints > > > > % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' --metric-only > > # time freq_max_os_cycles % > > 1.000234103 65.0 > > 2.000478612 75.2 > > 3.000681286 37.4 > > 4.000847224 2.9 > > Ok, ammending that then, I guess that happened because you didn't left > justified it with two spaces and git got it as a comment? Yes that was it likely. I was wondering how it happened. -Andi