Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1816148imm; Thu, 19 Jul 2018 08:18:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcs2Bk0jwVRgmIWOI+DNbZeETEI+hFxshS0rkqwQOrHejmVUmfs6oZYn7zXcAkvkNbTiWlb X-Received: by 2002:a17:902:7e06:: with SMTP id b6-v6mr10507728plm.230.1532013488928; Thu, 19 Jul 2018 08:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532013488; cv=none; d=google.com; s=arc-20160816; b=wo1YNYQSU1cEH8fvcFYJTIYIuT8X2dtUp2pKYI+ng2GuZgodmm3B40ZZ1HK9InPAeu Sa2wqcBCjDOkW9W1F81p6oZaik02TL9ZFoovltC9mDZpM/Ce8OeZC+3XGHUX+Pp+kjqz VH9IQnDZ+lt8DNOvhF145zAopZBTKOyyMLqsVLuciy4snDRLFWuYcK6Kr2mCGlfSPi84 IKVw6bx8a67PJNtuFMSPnBdrw6B1VkBohbMxrBOp6w/TxFqzmfV0/P0glYMCHKEoZnDK Ghn7FUqmIOTu9lpWUDhjZfJ+p7JhpGr7NgAn1e/6fV+/3ZjQDGBb1CM6JDcN/5kqT8WT n9LQ== 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=FAWcGE+cm8MlJtzO/unBmWmSa7BHhnLc9eU3mRhdmaI=; b=hbTvLwdUR4bVc8gWypC34VCSUIYn5j5GiaO8TWtGwF529Sy2+X3/d/fpC0mS/BI/cr 4/IbhqcWRDqLJZD7ofjCpefA7+eiJXORThhQ3KZxD7XHz06/4NRWoAvzkNNnqZ83sp9v htAk+I7MU52esXrGPm8mnRgWbFKxgNmy3WBPgEd1drOB/2l/57FruFetDSGSE8fCCei5 OJVI354VY5CO3a4zUk/Zwd2PGFhsBQ/7pa55Vew6wV4S3e6q2jjIEUYEqgjiQccAj5OZ cINj0KkxqD5FqsrFRMq87k2qbKtmEeFPmw9ho5M+XW2C+f8nFNR5JIzBmCwOQSC34/Ad AtBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Nhom19JB; 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 m86-v6si6304719pfj.48.2018.07.19.08.17.53; Thu, 19 Jul 2018 08:18:08 -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=Nhom19JB; 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 S1731851AbeGSQAz (ORCPT + 99 others); Thu, 19 Jul 2018 12:00:55 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:32943 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730053AbeGSQAz (ORCPT ); Thu, 19 Jul 2018 12:00:55 -0400 Received: by mail-wr1-f65.google.com with SMTP id g6-v6so8471558wrp.0 for ; Thu, 19 Jul 2018 08:17:16 -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=FAWcGE+cm8MlJtzO/unBmWmSa7BHhnLc9eU3mRhdmaI=; b=Nhom19JB7uEyDCNSSM7HSlSJ44iHP2jatzM4ixR25H3wCGmZ8z7eYUARqpj0sdHZvI fvGYTdH6EKfwc6i3UgHsEmGYMpRDD050Cq9nuyYxkSId41df8JquUrxXnrtR39Tbwlgn mFOXtK+mKYlxR8FZjMM0LETlJAzydlf3GXr+gR7Iufi2VncHzTiQr2nSqW701qrkZQrg aBgAMi4Ep0Zqtp35+B6rwebhXlx6vfRAlN1GD8tjEHHJALCqHvskEBNwu/9jpBkqgMJU 3yjyrcdi1tv4AhBELuchZ+wu03WeuD43l4Oki5qTtV0Cfk8pW5Eg39MKI1PV6bP9oFgf H9QQ== 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=FAWcGE+cm8MlJtzO/unBmWmSa7BHhnLc9eU3mRhdmaI=; b=o4Adl9HBZrQr8xEebcMDMrazqtZgJAXdVtIdBykSppuWm+iUcP8oHaeV35W7aFX5Pm wesDZNbiCSoz7URyHyvo7V3sBrYOQf0zbfQWE1KEHPDQF+iHt9Xpe2sbBborZNawU/hn QI9afZauQ71e5/a4ssH6Y6t4Elu1O2o76W17aMH7tGrBCS3U5pxQiQpDiMZzUM+KA6Fa ltmdcJKk5TItYGWnaCptD5WkU15u6WyuZ8rxzku+/HArl6rtpoNkpznbW4oyDaFrLQNx FteIybAk8J/I8JyGVhSWVuF1UdpA3xwro3cWNS4gavuFpwZ8nWO0leAj75rQtaYXYo2k HeqQ== X-Gm-Message-State: AOUpUlGeYGJVfuTLU4ohAih2A1d31x36ispRN7kP9HG5sdCN917nBKbY gXTNKBX19obUBslQkDqBcuk28wHB+KiJDjfuqPJBlA== X-Received: by 2002:adf:c612:: with SMTP id n18-v6mr7626672wrg.177.1532013435424; Thu, 19 Jul 2018 08:17:15 -0700 (PDT) MIME-Version: 1.0 References: <20180712135202.14774-1-jolsa@kernel.org> <20180712164941.GA8420@krava> <20180719142854.GB4070@kernel.org> In-Reply-To: <20180719142854.GB4070@kernel.org> From: Stephane Eranian Date: Thu, 19 Jul 2018 08:17:03 -0700 Message-ID: Subject: Re: [PATCH] perf tools: Synthesize GROUP_DESC feature in pipe mode To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Jiri Olsa , 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 Arnaldo, On Thu, Jul 19, 2018 at 7:29 AM Arnaldo Carvalho de Melo wrote: > > Em Thu, Jul 12, 2018 at 11:18:05PM -0700, Stephane Eranian escreveu: > > 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 > > Applying, Stephane, please consider providing a > Sorry about that. Tested-by: Stephane Eranian > > When you actually applied the patch, built and tested, so that we can > have this reflect better what actually was done. > > Acked-by is more like hey, I briefly looked at the patch, looks good. > I.e. no actual test was performed, which I think wasn't the case here, > but will keep what you provided (Acked-by) as I'm not sure you actually > tested. > > Thanks, > > - Arnaldo > > > > > 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 > > > > >