From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757495AbcIVO53 (ORCPT ); Thu, 22 Sep 2016 10:57:29 -0400 Received: from mga09.intel.com ([134.134.136.24]:21108 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757464AbcIVO5Z (ORCPT ); Thu, 22 Sep 2016 10:57:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,378,1470726000"; d="scan'208";a="12070304" Date: Thu, 22 Sep 2016 07:57:23 -0700 From: Andi Kleen To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Stephane Eranian , Jiri Olsa , LKML , Peter Zijlstra , "mingo@elte.hu" , Vince Weaver , Arnaldo Carvalho de Melo Subject: Re: [BUG] perf report --pid not reporting correctly Message-ID: <20160922145723.GR3078@tassilo.jf.intel.com> References: <20160921153753.GA2501@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > If not, I suggest to use --hierarchy mode with including the sort key > as the first one. In this case. It'll still show absolute > percentages of global total period, but you can see the desired result > easily IMHO. Please try something like this: > > $ perf report --hierarchy -s pid,cpu It would be nice if there was a way from scripts with a command line option to ask hierarchy mode to only show a subset of the tree (e.g. with some kind of pattern) Then options like --pid could be obsoleted, but it would be far more flexible and scale for all the sort keys which are supported, without adding a lot of new command line options. -Andi