Received: by 10.223.176.5 with SMTP id f5csp1031226wra; Fri, 9 Feb 2018 11:11:59 -0800 (PST) X-Google-Smtp-Source: AH8x224uq6O46WNzXLfVW85/yAODy8umIZ4dQlHWu/dyUuOrj2MZFTi96RIk/Fp/bKMOxXQb23rC X-Received: by 10.98.36.81 with SMTP id r78mr3861415pfj.196.1518203519830; Fri, 09 Feb 2018 11:11:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518203519; cv=none; d=google.com; s=arc-20160816; b=0z1Wjg4wMZQI7OQFiWknVcAg3P+xvHSlgQwVbhTp33RWKEic24lzczXqV6Ay8ylLSa JQQQasUQGv4edZvQZUR2FBnIWkBMlQO+1U/UQgOMrZxOiEjbaD0rd538PeeGM0iJqCC0 rYAYK0TnzLzqGY55HcuyoijrYT/lS77RwR0utSwKzJMdMaI0NRteei9+oBNeWFQ2S2ip FWz/3W0+AwPDeRXyPRv2u+4GI+r53Fw/hfHKYKcvXMC4SKiUfMcZuS2kiRZB+dTYLYrA RbFrHTcnU6SpKCazHlwJUiiiRKj/1jO7vdITSMhQDQUlbA8fvcHOhQCg6Oxs+VZmlf+0 zamg== 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:arc-authentication-results; bh=oqUSln9SJkI7aJyubiD7+iKGD7xgqSsj8ICk/a0j6sY=; b=GcV5W8Jf0WA4Cky13dXMfoNXhYNRSfd/EYV4T0R8D4fr2P0TFLUNRj0rtsFoniFtrl tctLbS8vO12cbl+Tm0Z89T0PyfKL1rZufi6edoktzOqK6gdRf5tsCW0it/EeORWccUU7 ZrkA5GDOKLdpDwK7tkvZCrVcxSwRSROOFWFwbOpgU+9WCfF213DDBEGSSGLmrpB2CwBd lSKOajbnT4Ovga1AbOdXOH5NK+bieO4nLrCKU7hpr4vP3LRpxPeqhUn5geoT/0D41W9j qAtJmiDIoEUrDy7p9gvvuOpvn88N4GkjzVHFVPmKUmYnjV9oSOm0xW5c53wG/Somj0l0 wmvw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si872358pgf.479.2018.02.09.11.11.45; Fri, 09 Feb 2018 11:11:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752356AbeBITLD (ORCPT + 99 others); Fri, 9 Feb 2018 14:11:03 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37828 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750835AbeBITLB (ORCPT ); Fri, 9 Feb 2018 14:11:01 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 527387D845; Fri, 9 Feb 2018 19:11:01 +0000 (UTC) Received: from krava (ovpn-204-46.brq.redhat.com [10.40.204.46]) by smtp.corp.redhat.com (Postfix) with SMTP id D3D16FA29D; Fri, 9 Feb 2018 19:10:58 +0000 (UTC) Date: Fri, 9 Feb 2018 20:10:57 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo 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: <20180209191057.GA10129@krava> 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> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 09 Feb 2018 19:11:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 09 Feb 2018 19:11:01 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 09, 2018 at 03:37:11PM -0300, Arnaldo Carvalho de Melo wrote: > 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 right, I'll try to post something like that thanks, jirka