Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2502246imm; Mon, 24 Sep 2018 05:33:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VjNGnUKZqwItsxSyyU71w/+MKsX3EO+58zBZL2oEeDgMWH+xb2ijsJdirCBJblB4Kyg9j X-Received: by 2002:a17:902:e5:: with SMTP id a92-v6mr10582433pla.273.1537792417854; Mon, 24 Sep 2018 05:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792417; cv=none; d=google.com; s=arc-20160816; b=tlvAaMd/y373f4jbJRCppmifZRyyIRncOIUqkG+z4jRZxozoslsLB3i/uyicJPvMd3 Ox1Hi45tKpZwbtEIpJwQdDMQblRERFOcFuiVw8OLmN4iUzBiFAC1d993nhJ0Siguz38i ROfjomSbU8Df+8Gl3ufcEkn3uHdkkkCaoTNPCoQatBPPRAeVANWpwHlKfsG3HsBIAn81 lhWNUYOYfcIt9tseh0q1s9KwV9sNQXeIddTdqavr54CBWgzi2tVXUdSh5Nh9+m2K+HJP DlRaR4e+NaVXVPkH9Ob02V7gS6GrbBqcm+lVcTEciDh6n5nyfS6+rsfSsyQKziudaheL 6C5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=LvkL8vVRFJl1R7ZRCNiVQznm5vkuN3kVNbHnUjfaON8=; b=x600u6XyDhWUOb4YfE9Kj12vF+/0VEnnFaDddLSRM8Q4NU0hWsAqcY3pC3SGnfvYUA DBazNId+r0CRnEyaxn1c0NIznD02FTxryvLXjAJs4EdrR+WN1Twe88ifUb7jJrf0SYih 5jKI9fabFlkDYSbIqekWGaVD27fIrT+WG5A30QRJnoZLAXfHlfdv/1MnBtyrU8j9o385 uLhaKxkt5q3cesaZNoVQmEjElegRSN96ep1WIUA2NOJ7pnJbiHSd9I5OzhcuT5deAJKX MgIrmnSsuMHJ49RP8wX1C9E5qzeM0aYr64b2bYHgMOEwOU7NRHd7R1Q+E1cOn7DdLO4v iDQA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10-v6si35931662pfe.41.2018.09.24.05.33.22; Mon, 24 Sep 2018 05:33:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388096AbeIXSd7 (ORCPT + 99 others); Mon, 24 Sep 2018 14:33:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58062 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730184AbeIXSd7 (ORCPT ); Mon, 24 Sep 2018 14:33:59 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id ACCBD1099; Mon, 24 Sep 2018 12:32:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephane Eranian , Jiri Olsa , Arnaldo Carvalho de Melo , Alexander Shishkin , David Ahern , David Carrillo-Cisneros , Namhyung Kim , Peter Zijlstra , Sasha Levin Subject: [PATCH 4.18 047/235] perf tools: Synthesize GROUP_DESC feature in pipe mode Date: Mon, 24 Sep 2018 13:50:33 +0200 Message-Id: <20180924113109.928889874@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jiri Olsa [ Upstream commit e8fedff1cc729fd227924305152ccc6f580e8c83 ] 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: # 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] ... Fix GROUP_DESC feature record to be synthesized in pipe mode, so the report output is grouped if there are groups 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 ... Reported-by: Stephane Eranian Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Tested-by: Stephane Eranian Cc: Alexander Shishkin Cc: David Ahern Cc: David Carrillo-Cisneros Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180712135202.14774-1-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -2587,7 +2587,7 @@ static const struct feature_ops feat_ops 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),