Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp429417imm; Thu, 12 Jul 2018 23:20:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpchHjshsQVlFFVV1csiIrHRJyo3YSWgI72YOlr5hBpnrVm2ZeOfo4t1j5g9aUaoTRu4ph4p X-Received: by 2002:a62:8d7:: with SMTP id 84-v6mr5639713pfi.172.1531462839490; Thu, 12 Jul 2018 23:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531462839; cv=none; d=google.com; s=arc-20160816; b=EmxJ5MGS+W5P8OZkOuN3da+Q0JGDaVVh5EN/hCdb7IKl3sZ68HS8Pfz7YhbaDc0cUd MSwNVYHnL1aeysMXlw804d1zQeLLvu8L2HMkEIgcHBDI5toQ6aJs6CrryPZMgNdsRHM9 BkKvlAc9LI0ZkCD5NXBLkgelKvxIkXEHjPrLQwiKJnCe7jlg8JUGkToCTB0myy/hkh8r z6W17H1J40kijyU1BMUevXxvqIF7nHsGbECFk3RUpIgHgHo16wYjOJ9FpZDM1liYnBgb teLwIALgcO0f5RFeSkzL61khl3tvvVVRNi2wE4UJUG7D2iQ0CMbWU4nX/1A3PUnn7v+t Ythg== 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=/CS0Fkk/noTpzGPwzbGyBpdxWu8D/VK+euQ9/V0rAKs=; b=DiXLAZeO4m5JuOahgGnMJAl9kDk4XPiOuXIo380iWhESAlWAmpprOjPqgGRC/rCjPV NN5t+G69OE+tUncrPXKOOYNgKxpemV3NWHFxRhKhyPGukfbV0EFphw3xfgW7m6d6F/wM 4LggFa7o0iHjQFrbAaUX4U1QrmWnIAwha+lQNpISEYZUpzytawBfyoGuWn+SgFUoOod5 lZjOUhh+tiQIGQ9iE+O/MSDxJkUkHHicH4wCkEuMxZ85HvvZ5/7wf19FOLskCGC9tzel TULpOBQ+FzDmF6ILGkHRT7DcUt8swkRPNiONwsXxHokyCCzyPRJ8rQRU9IT1mrzVaGOI 1GUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KK53kii+; 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 n15-v6si23079410pgc.309.2018.07.12.23.20.24; Thu, 12 Jul 2018 23:20:39 -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=KK53kii+; 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 S1729323AbeGMGbY (ORCPT + 99 others); Fri, 13 Jul 2018 02:31:24 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52450 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbeGMGbY (ORCPT ); Fri, 13 Jul 2018 02:31:24 -0400 Received: by mail-wm0-f66.google.com with SMTP id o11-v6so1723550wmh.2 for ; Thu, 12 Jul 2018 23:18:17 -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=/CS0Fkk/noTpzGPwzbGyBpdxWu8D/VK+euQ9/V0rAKs=; b=KK53kii+QzV/yf3/xsMcpc26i+CYUSrQ2lwoRQQK3Zan72A8eKk6uatVfOeOCGDTJt jig9qt/A6Rh8e/LTsZNLE0rZwlrT1K7naGEHDAPbJL7IpzpJ0t84jHJhXKsEN5e/2H3j Iwv2kxz7+X/XoXlqPULrvciyCWimC5vLwzxsgmlvN4vgHI2DBsnxvKualtaJlrgNtLq0 IdT0E+mRFvOSbKWqH6oRgjSd24u3n6Gx5rGb6FJgSJze4E+l+/FEtwRMR7gpqERcHyq+ 5LfqecEiWGH2boRkZT4JJqw3fgMCi7I1XH0tOWgcb/aGjtHjbOG0fmM5IJdvtxjJn5tx LnTg== 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=/CS0Fkk/noTpzGPwzbGyBpdxWu8D/VK+euQ9/V0rAKs=; b=IdJzBGi6a4NN+/uwQp/aLy/2mfWep1TxcXj8hVes3r2/Zj1UQAbKqKuvjy2cI7ZHZK e47Y2PS1afdz8N6aA4lPwYswkp8WxHqwFQWbh8y9BsuDLSpCUdGOl7SFZb4Wt0ZIysEg fjej5HY/lT+I18FuiF/CyttcD0LMLP99np2rVlULdPLOPorl+9uCd1vcBtbpvpEwc0Ga F7kZ31aHsjFkgUkureHmky0mkfcc4kqOVOei3CKyod2ywBGW5BZypZXcbL5KBsQpmx9s yJXf4f7aA6i3/9GC8UZsftT28N1nUo/stdEEZLiO4aVLgk2kTefb8n8JqgZEpsCcRI0N oF3Q== X-Gm-Message-State: AOUpUlE8EsaGKIxmCDmGsZecNdPitnyfrJdNhCwPiYdAHXjSpQX1H5Ju kjitZZRK6HgHrKWweKrYKcVANPQRw0jspsd5Ss0YUg== X-Received: by 2002:a1c:6c14:: with SMTP id h20-v6mr3199195wmc.138.1531462696498; Thu, 12 Jul 2018 23:18:16 -0700 (PDT) MIME-Version: 1.0 References: <20180712135202.14774-1-jolsa@kernel.org> <20180712164941.GA8420@krava> In-Reply-To: <20180712164941.GA8420@krava> From: Stephane Eranian Date: Thu, 12 Jul 2018 23:18:05 -0700 Message-ID: Subject: Re: [PATCH] perf tools: Synthesize GROUP_DESC feature in pipe mode To: Jiri Olsa Cc: Jiri Olsa , Arnaldo Carvalho de Melo , 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 9:49 AM Jiri Olsa wrote: > > 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? > Acked-by: Stephane Eranian > > 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 > > >