From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934660AbcATBgt (ORCPT ); Tue, 19 Jan 2016 20:36:49 -0500 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:43994 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934545AbcATBgQ (ORCPT ); Tue, 19 Jan 2016 20:36:16 -0500 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 165.244.98.76 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org Date: Wed, 20 Jan 2016 10:36:12 +0900 From: Namhyung Kim To: Andi Kleen CC: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Stephane Eranian , Wang Nan , Don Zickus , Pekka Enberg , Moinuddin Quadri Subject: Re: [RFC/PATCHSET 00/17] perf tools: Add support for hierachy view (v2) Message-ID: <20160120013612.GE18796@sejong> References: <1452960197-5323-1-git-send-email-namhyung@kernel.org> <20160117193153.GI4698@two.firstfloor.org> <20160119104506.GB1324@danjae.kornet> <20160119221204.GO4698@two.firstfloor.org> <20160119222449.GL27085@kernel.org> <20160120005647.GC18796@sejong> <20160120011100.GA31686@two.firstfloor.org> MIME-Version: 1.0 In-Reply-To: <20160120011100.GA31686@two.firstfloor.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB02/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2016/01/20 10:36:13, Serialize by Router on LGEKRMHUB02/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2016/01/20 10:36:13, Serialize complete at 2016/01/20 10:36:13 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andi, On Wed, Jan 20, 2016 at 02:11:00AM +0100, Andi Kleen wrote: > On Wed, Jan 20, 2016 at 09:56:47AM +0900, Namhyung Kim wrote: > > On Tue, Jan 19, 2016 at 07:24:49PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Tue, Jan 19, 2016 at 11:12:04PM +0100, Andi Kleen escreveu: > > > > It only considers the hits on the leaf function, but doesn't hide > > > > the individual call chains leading to that function which are below > > > > the limit. > > > > > > > > So if you have a lot of different cold callers you still end up > > > > with far too much output. > > > > Could you please be more specific? Let me try with an example.. > > > > $ perf report > > ... > > + 1.00% perf perf some_function > > some_function > > - common_caller > > - 0.6% caller1 > > + 0.4% caller1_1 > > + 0.2% caller1_2 > > + 0.3% caller2 > > + 0.1% caller3 > > > > In this case, do you want this? > > > > $ perf report --percent-limit 0.5 > > ... > > + 1.00% perf perf some_function > > some_function > > - common_caller > > - 0.6% caller1 > > Right. Only call chains whose total percentage is larger than the limit. So in this case, caller1_1 and caller1_2 are both under the percent limit but after they merged at caller1, it should be shown. Look like a reasonable result. I'll add it into my TODO list. :) Btw, is it all you wanted to say? Is there any other case for trouble (wrt callchain percent limit)? Thanks, Namhyung