From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934142AbdCUToA (ORCPT ); Tue, 21 Mar 2017 15:44:00 -0400 Received: from mail.kernel.org ([198.145.29.136]:47854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933725AbdCUTmw (ORCPT ); Tue, 21 Mar 2017 15:42:52 -0400 Date: Tue, 21 Mar 2017 16:42:45 -0300 From: Arnaldo Carvalho de Melo To: Andi Kleen Cc: Jiri Olsa , jolsa@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric Message-ID: <20170321194245.GI3641@kernel.org> References: <20170320201711.14142-1-andi@firstfloor.org> <20170320201711.14142-11-andi@firstfloor.org> <20170321144836.GA6931@krava> <20170321154522.GK14380@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170321154522.GK14380@two.firstfloor.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? - Arnaldo