Received: by 10.223.176.5 with SMTP id f5csp1004682wra; Fri, 9 Feb 2018 10:44:07 -0800 (PST) X-Google-Smtp-Source: AH8x225SlXGJesav6jJqlKBF2TsOuD1xoFFU7VJr+aTEmChIJWCFaGRdbr7WdDb5RCLOyv/nhS2Q X-Received: by 2002:a17:902:560f:: with SMTP id h15-v6mr1813840pli.302.1518201847817; Fri, 09 Feb 2018 10:44:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518201847; cv=none; d=google.com; s=arc-20160816; b=oVi8FQsc6x3v2MdEpNdaD6CjK940B0AMUlcrU6NhaTXxJyinNxLMp+eq+xhf44i3Ct lgdH9kGKZ6aLwFTu8FRWaa4PK7Kg+YW7AhGdcVN0rfXpqCwgNkWSfDk5W4VCjZy+Dc7p f5HGFjyeTZNkB4xVnv3gHlH7xVC1AD3Nuos3W8D3/NKkRrxJw6dJHe0PL9nppJdv/hrk CdpcFFF2Up15uhulbJImexa6dizo0yjxX4PmON92xZDakRXLQPpRlkYLtW1/zl1coZuL a3+pBg91U9GOCJt8Qgl+GfKEWsCVtlDljwT7oXtpza0UHe/KFdLUhdCQKpXLSEpWJ/iS nshQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=G4KUYYdV0GHZgxxksBRR7GCK7P9IzBWJDesQ4g1ndyY=; b=gJV8JdRtlt31+p5/gzBm9PBw0tNxC4SdjkIEg/yb2hoSD1h9yX2QUz8rShtfZFBkxt YvpEmw8f3FimSo3YYeS0nW2msWNBx6kC11Swfctt09Ym63KI/uPt6BT/QFU60LtQ0opT uKw9szCgTxElOyKtNzgWQM9Ibhj3Xc6wChSspWaFX8AG93FtQUCpu0gI4bpq21ED11gd QVNHZwQhLIEk9sPXWR7fdLOk1FXbB+zOzixF9F3Upz0VQWO0g49fDHRd/s+s87FSesCK MHce5tHDF5DogmObI2QNFCYyAvt4CEQITqbHvsHaj7eQVDS5ZB6VgJnsGM5HVW+/liqn VRhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si1651329pgd.450.2018.02.09.10.43.52; Fri, 09 Feb 2018 10:44:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752190AbeBISnN (ORCPT + 99 others); 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 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE51E2173B; Fri, 9 Feb 2018 18:43:11 +0000 (UTC) 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 Received: by jouet.infradead.org (Postfix, from userid 1000) id C0F06144FC4; Fri, 9 Feb 2018 15:43:09 -0300 (-03) 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 Precedence: bulk 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