Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1900851imm; Thu, 12 Jul 2018 09:36:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdbsLzFbR3KctZzyDsTXP8cZ+cDWx+0Hk04CgdLcDt07dwCtIcGgcmJvJNyESikv+zuGHcn X-Received: by 2002:a63:4d06:: with SMTP id a6-v6mr2714324pgb.408.1531413370770; Thu, 12 Jul 2018 09:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531413370; cv=none; d=google.com; s=arc-20160816; b=TqyAGvnmvoPDH0P2n9L1NlBUA7ZHRhpuKVe+cqIY1EKkc1iNigP55fVUnWt8MSANON +zTcpOzbn8/tdF3RdR8D5ms6seYA9gdhqpbMYgEzZsdawoBGL58tEHO2v06/3bChS7Eo e32KpyXvv2pohrVg9oibWk9HIaLBBJV/38q7Ioh54Js3FtYrwJmQ9XP3tPZrvDBMcx67 n7GG3VCd0HBR1+NxlZMKZKJsJfYXgX6ZhHwfj71q6CRtde8Woi5/jO4fmEN9MdY/jwAr R3/Dys/cGen+Lz+51WNa6KeNQF5GHsh4nO9BnIqB56YhvT0VbD09ycOWh61rIiRC8yiy bZzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=B95ZQWtMOu6t7IAHJNdiQ7hxhRcbu9URUALGrox6/MA=; b=PvmtuzlO6wl7sgPhQNd7lHq5++YKn8a4K7j//g5ULGTizr7zqayKKz1IEK08FeitQ+ RpfjdUxVtW36XJ3zdYl80J5DPy87boapiOAZV/ocuFsRnuebkEjLrFXVWG8rmWZtYU8A /bHL+4dknzYX79KXldu0i4hFHia+TpoaWW7t1Fb26TtIYCIZ26UhNlZA/vqWJSqPdMHV xD3K0sCgOZ/LT9M4S782BO2Bb/Hc7Z1GAFbXlHa4S9a4ZzFumP13DMRBDYu3Od/96W1I eX6SQKluC58NZR9M8EdEO6n0IEi30mf9vsVwbYlVndfdcjvwis4cjcPL22YKyRkBwSlA cv7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PNu5b4xx; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k90-v6si24005754pfa.77.2018.07.12.09.35.55; Thu, 12 Jul 2018 09:36:10 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=PNu5b4xx; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727642AbeGLQo6 (ORCPT + 99 others); Thu, 12 Jul 2018 12:44:58 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38536 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbeGLQo6 (ORCPT ); Thu, 12 Jul 2018 12:44:58 -0400 Received: by mail-wm0-f67.google.com with SMTP id 69-v6so6682027wmf.3 for ; Thu, 12 Jul 2018 09:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B95ZQWtMOu6t7IAHJNdiQ7hxhRcbu9URUALGrox6/MA=; b=PNu5b4xxhSZHwg3yhPxqecJyIUMuBIrHDUFhe46LO8pNEnkyjIcx/YHrS/ANDmgC00 d+upLUjjW4g/DGmap1wdbfL1HlenwIyKRhXHJGcTGTWz6HrprnxiFxNWcEqxcEnRgRqU lUeh1vuINfSwJ8k2UjaNifX9dKsNUrqIeoEC7AkVbU8OVLDbqoO5UGc1/6aH04zHuZ7V 74Ls1d4DhJ0JfFZy3affoMdLYD/xpvzk+tzA4qXxesHzerXiVls7VDQBgqOi5FxYylmn e1yOBr1cxAQs+AMTreluWgzpid2vJL0imBQdJIow5GGzMSdOsBk78nG50wXuxR4RkIip 7+Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B95ZQWtMOu6t7IAHJNdiQ7hxhRcbu9URUALGrox6/MA=; b=dehaoy+b6psDM7HL4xC6fjPvxjeUyNboW9Iv9RL4lX0cDTf0dq8LmlsRz8qkG1jqeI bpr23OHqbZYeNYyIAoLbnHQ3VwOzABIlT9vFQUuHCLztw35Fxv90EtqJc/zAZ5zf/zue jQklT8XIbmxMNfqY5rKNYrKrXTz0E19JU97Au5MHnEMnNPOyZNym51h4wbBFDxihalzX ChJx7UeUMt9ZoZTpd2/eMUZ/rN4VtI4PLQLrjnqBf46YofPb3DPzqytvERfxAZvup4mH kEWjTC3Vx7y4+Gw8KWWiQnxpupFBoc8x0gaisCSna9H4n6MXP8bEDnePWlVFlt7OxHjH 4QOw== X-Gm-Message-State: AOUpUlGaKHQVQTKgzYW2hAjhdc9G/K2OODWfjckxL/dXolanHQvCY+5X PzTorZLZbzIJ3fAw2mhZx7vqDReGQD1e4kaB6xiZQQ== X-Received: by 2002:a1c:9f86:: with SMTP id i128-v6mr1687994wme.156.1531413279574; Thu, 12 Jul 2018 09:34:39 -0700 (PDT) MIME-Version: 1.0 References: <20180712135202.14774-1-jolsa@kernel.org> In-Reply-To: <20180712135202.14774-1-jolsa@kernel.org> From: Stephane Eranian Date: Thu, 12 Jul 2018 09:34:45 -0700 Message-ID: Subject: Re: [PATCH] perf tools: Synthesize GROUP_DESC feature in pipe mode To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , David Carrillo Cisneros , LKML , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I think we should have more testing on the pipe mode, in general. > # 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 >