Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1914733imm; Thu, 12 Jul 2018 09:51:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc2Y7yQ97WAphRd16YxsGNoa9yyoqyuGY2f5ugvv9+YhrmMIM/RKW9CoZWfsc8b3sFum6yG X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr2857735pgb.274.1531414287745; Thu, 12 Jul 2018 09:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531414287; cv=none; d=google.com; s=arc-20160816; b=09ovVIQkZx9h1TJlFK4UgrQV8xTZE/zoksPHtPJ1998dxacvfY4CVNVi8eb2jdZqTL ycJEtz3yav7jd+S28OdRIhDM8A/+HvNROAPz3zi4w2/ejnmOrVM/IbD2pH5nwL37feGS o06H166WbIgghT80jdtWgGbHlzR+4+BCifbJ+zimHP91JFDVsbsHGMTDh0gpofGIyIT0 T02PlYhTvAAiMikknKVg/AXlU4C/wl8ilewoY9+Hg4tzAOcxqvinWRs1AX32Omfe7mw0 0KSEm+CLTlH1iB23Xbgm2+gHKZtY8sBemD1zwK3LX+5Pp7nBoFCumCFb0x6xhIHILsmg Iw9A== 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=N2PGW40Lps76cxLPpJO9KqWXINgTFnUsMQIBKo4vaxk=; b=dIYXsRl77601A4syzvFVRCnUWfmbAga5BeR26aQhMX3gKZb/NKrzHxVtTyd8zcs9dG ZSOQka31kTb4NWBCDjMCz+aoyXTbxzCD5f9QUn70oOXl7TWCEXwQhz8/ElYHUAqB146m AJHvv/h6NaTycNaeYPQuERMxA9I4wBtZzJWritmktheaEW/CiiXVX8NKur3dJmq8w+QJ r4ShFsoOfcblLAROgws4276YtXhP12FEd5DrQykyOuwlPQPc7tqq6p2pOPoUqkyPQQTj Z/v6TTCJK+bE7SDR28cxBfCCd5tFj69GJCKhgH6EPqAm/jIO6gCdfKEW68fTSa1H/WvE 4N2g== 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 1-v6si22562114plt.342.2018.07.12.09.51.12; Thu, 12 Jul 2018 09:51:27 -0700 (PDT) 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 S1732462AbeGLRAG (ORCPT + 99 others); Thu, 12 Jul 2018 13:00:06 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36198 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726775AbeGLRAG (ORCPT ); Thu, 12 Jul 2018 13:00:06 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A33C840122CD; Thu, 12 Jul 2018 16:49:44 +0000 (UTC) Received: from krava (ovpn-204-45.brq.redhat.com [10.40.204.45]) by smtp.corp.redhat.com (Postfix) with SMTP id 6CA851102E24; Thu, 12 Jul 2018 16:49:42 +0000 (UTC) Date: Thu, 12 Jul 2018 18:49:41 +0200 From: Jiri Olsa To: Stephane Eranian Cc: Jiri Olsa , Arnaldo Carvalho de Melo , LKML , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Peter Zijlstra Subject: Re: [PATCH] perf tools: Synthesize GROUP_DESC feature in pipe mode Message-ID: <20180712164941.GA8420@krava> References: <20180712135202.14774-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 12 Jul 2018 16:49:44 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 12 Jul 2018 16:49:44 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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 Thu, Jul 12, 2018 at 09:34:45AM -0700, Stephane Eranian wrote: > Hi Jiri, > On Thu, Jul 12, 2018 at 6:52 AM Jiri Olsa wrote: > > > > Stephan reported, that pipe mode does not carry the group > > information and thus the piped report won't display the > > grouped output for following command: > > > Thanks for fixing this quickly. could I have your tested/acked by? > I think we should have more testing on the pipe mode, in general. yea, we should jirka > > > # perf record -e '{cycles,instructions,branches}' -a sleep 4 | perf report > > > > It has no idea about the group setup, so it will display > > events separately: > > > > # Overhead Command Shared Object ... > > # ........ ............... ....................... > > # > > 6.71% swapper [kernel.kallsyms] > > 2.28% offlineimap libpython2.7.so.1.0 > > 0.78% perf [kernel.kallsyms] > > ... > > > > Fixing GROUP_DESC feature record to be synthesized in pipe mode, > > so the report output is grouped if there's group defined in record: > > > > # Overhead Command Shared ... > > # ........................ ............... ....... > > # > > 7.57% 0.16% 0.30% swapper [kernel > > 1.87% 3.15% 2.46% offlineimap libpyth > > 1.33% 0.00% 0.00% perf [kernel > > ... > > > > Cc: David Carrillo-Cisneros > > Reported-by: Stephane Eranian > > Link: http://lkml.kernel.org/n/tip-ybqyh8ac4g173iy3xt4pxnlo@git.kernel.org > > Signed-off-by: Jiri Olsa > > --- > > tools/perf/util/header.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c > > index 59fcc790c865..af9aaf28f976 100644 > > --- a/tools/perf/util/header.c > > +++ b/tools/perf/util/header.c > > @@ -2587,7 +2587,7 @@ static const struct feature_ops feat_ops[HEADER_LAST_FEATURE] = { > > FEAT_OPR(NUMA_TOPOLOGY, numa_topology, true), > > FEAT_OPN(BRANCH_STACK, branch_stack, false), > > FEAT_OPR(PMU_MAPPINGS, pmu_mappings, false), > > - FEAT_OPN(GROUP_DESC, group_desc, false), > > + FEAT_OPR(GROUP_DESC, group_desc, false), > > FEAT_OPN(AUXTRACE, auxtrace, false), > > FEAT_OPN(STAT, stat, false), > > FEAT_OPN(CACHE, cache, true), > > -- > > 2.17.1 > >