From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752201AbeBISnN (ORCPT ); Fri, 9 Feb 2018 13:43:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:42126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbeBISnM (ORCPT ); Fri, 9 Feb 2018 13:43:12 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE51E2173B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Date: Fri, 9 Feb 2018 15:43:09 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Stephane Eranian , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Andi Kleen , Alexander Shishkin , Peter Zijlstra Subject: Re: [PATCH] perf report: Add support to display group output for non group events Message-ID: <20180209184309.GO3451@kernel.org> References: <20180202204004.GB8297@kernel.org> <20180205151720.GA29340@krava> <20180205211340.GD25353@kernel.org> <20180206093553.GA8065@krava> <20180209092734.GB20449@krava> <20180209183711.GN3451@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180209183711.GN3451@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Feb 09, 2018 at 03:37:11PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Feb 09, 2018 at 10:27:34AM +0100, Jiri Olsa escreveu: > > On Wed, Feb 07, 2018 at 10:52:35AM -0800, Stephane Eranian wrote: > > > > SNIP > > > > > >> Similar to what I get if I do instead: > > > >> $ perf record -e '{branches,branches,branches,branches}' my_test > > > >> $ perf report --group > > > >> > > > >> But here, I would have to ensure all events fits in a group to allow > > > >> the reporting > > > >> I want. So that would limit me to 4 events. > > > >> > > > >> I think perf report --group should work regardless of how the events > > > >> were grouped. > > > >> Is there already a way to work around this? > > > > > > > > no workaround.. please try attached patch, it seems > > > > to work for what you described > > > > > > > Works for me. That's great! > > > Thanks. > > > > > > Tested-By: Stephane Eranian > > > > thanks, full patch attached > > > > jirka > > Humm, its a nice hack, but it would be even better if it didn't showed > it as if it was really a group: > > Samples: 20 of event 'anon group { cycles, instructions }', Event count (approx.): 4712980 > > It would be better to instead add another condition to the evlist that > would trigger the view with all the examples... > > I'm applying it anyway, as it is useful, but would be nice to have the > same output except for that header, that should read instead: > > Samples: 20 of non grouped events: cycles, instructions, Event count (approx.): 4712980 Till then, that documentation hunk should help understanding this issue. :-) - Arnaldo