Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1762325imm; Thu, 19 Jul 2018 07:29:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdE2W6oLhmiTk419MO64NNPcR/4lTl6E+3/WIxQAzq+e2VQJXI/KJnFslpJefIMR02sWGXQ X-Received: by 2002:a63:9856:: with SMTP id l22-v6mr10564231pgo.208.1532010598858; Thu, 19 Jul 2018 07:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532010598; cv=none; d=google.com; s=arc-20160816; b=p3sEXEniNPQqoDFAwijrzyit6XzifpQ40kJyJ7x1wTlo+52jxEJBnwk4qeZe+un0QL hr9yvYuluH5K5B81zCc71cO48NA/qSiEKS9O5uLUgRByxUqyfP7LlTtWId1yUMVlRau6 0cg9ikq1R7FQl9/DkqagUiGB57gBt2iSK7uwdWwOR3H3ek4Thj3VcrOuSTe8tLqVWBeX 0vdbU8V7tOE4mh/L2I89902QVQMHuTChK1pBInttGLo3XI9lsU1GId1zgLyckcwO32YY BkjW2F6SYnkj6MTzmEkC4+CKwVIAnRYSuKdQrtLWdPJiwt3hXLyZ6gQU7fGOUFanGIr+ ZuYw== 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:dkim-signature:arc-authentication-results; bh=cTE9z2OWkYDQqpWc1DcwZ7scXz7og9GPUdp924sAg5k=; b=JUNJdetHyI0vpaorcV2hwP5CCDDero3DY1jbgQ81LkapSHN1gvwzNwqBJlPGDlZw8a PTzSCmGMSUKI8P253F4QswMpM+3X7cGiL2fuA4x/1+OufklmZenbDY0b0l+qKC3oqihk ECgZf4bvlAdZKlqrVkD4qTX4ZXeIPAxe5OGiJ4/oKN0wZ0CjE8o40DUe5+e1UcJ7imoc WfChMak1/9B+9wSSQw4v3hN1PH1frN7Thvij9xl71TxMoyTJSRB42hiHV8MlRkoD30nt C5TG3KMGXor21pwiEAIe2anaGk9VFvEpqunAxbF6uT3S9abAKjc14gxE4rc90B8rWnpD 0aUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vdZbSPIL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10-v6si6267047pgm.535.2018.07.19.07.29.44; Thu, 19 Jul 2018 07:29:58 -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=@kernel.org header.s=default header.b=vdZbSPIL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731788AbeGSPMZ (ORCPT + 99 others); Thu, 19 Jul 2018 11:12:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:33224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731750AbeGSPMY (ORCPT ); Thu, 19 Jul 2018 11:12:24 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 03DEE2084E; Thu, 19 Jul 2018 14:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532010538; bh=Ey+fGETlEUf0o7vqKR9jts0A0czG5z9MjK09jf3IpDU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vdZbSPILQVVZyFGSuksE7RQ0jKk1otkSI0LZRXZ3t+2A5brHdoDd/h47VUgYrR9ba hDZauEj2N39/IGLypuRFcjQxjFDqQ65x6bI99L/9IEo+R0BH8i5vQXqoErirgWiOuc Q8bJlllPGjKHCCMbd4xX4iKbQ6o4bYyNUWo2izn4= Received: by jouet.infradead.org (Postfix, from userid 1000) id E425A14486C; Thu, 19 Jul 2018 11:28:54 -0300 (-03) Date: Thu, 19 Jul 2018 11:28:54 -0300 From: Arnaldo Carvalho de Melo To: Stephane Eranian Cc: Jiri Olsa , Jiri Olsa , 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: <20180719142854.GB4070@kernel.org> References: <20180712135202.14774-1-jolsa@kernel.org> <20180712164941.GA8420@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 > > > >