From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965632AbcAZN1e (ORCPT ); Tue, 26 Jan 2016 08:27:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51493 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933342AbcAZN1b (ORCPT ); Tue, 26 Jan 2016 08:27:31 -0500 Date: Tue, 26 Jan 2016 14:27:26 +0100 From: Jiri Olsa To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , Andi Kleen , David Ahern , Frederic Weisbecker , Wang Nan Subject: Re: [PATCHSET 00/12] perf tools: Apply percent-limit to callchains Message-ID: <20160126132726.GA21547@krava.brq.redhat.com> References: <1453643615-1616-1-git-send-email-namhyung@kernel.org> <20160126121447.GA19017@krava.brq.redhat.com> <20160126125159.GB24496@danjae.kornet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160126125159.GB24496@danjae.kornet> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2016 at 09:51:59PM +0900, Namhyung Kim wrote: > On Tue, Jan 26, 2016 at 01:14:47PM +0100, Jiri Olsa wrote: > > On Sun, Jan 24, 2016 at 10:53:23PM +0900, Namhyung Kim wrote: > > > Hello, > > > > > > This patchset tries to implement percent limit to callchains which was > > > requested by Andi Kleen. For some reason, limiting callchains by > > > (overhead) percentage didn't work well. This patch fixes it and make > > > --percent-limit also works for callchains as well as hist entries. > > > > > > This is available on 'perf/callchain-limit-v1' branch in my tree: > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git > > > > > > Any comments are welcome, > > > > > > Thanks, > > > Namhyung > > > > > > > > > Namhyung Kim (12): > > > perf report: Apply --percent-limit to callchains also > > > perf report: Apply callchain percent limit on --stdio > > > perf report: Get rid of hist_entry__callchain_fprintf() > > > perf report: Fix percent calculation on --stdio > > > perf report: Hide output pipe for percent-limited callchains on stdio > > > perf hists browser: Fix dump to show correct callchain style > > > perf hists browser: Fix callchain_node__count_rows() > > > perf hists browser: Apply callchain percent limit > > > perf hists browser: Fix callchain counting when press ENTER key > > > perf hists browser: Fix counting callchains when expand/collapse all > > > perf hists browser: Update percent base for fractal callchain mode > > > perf report: Fix callchain percent limit on --gtk > > > > is 0.5 the default or one has to use the --percent-limit 0.5 > > for the limit to be effective? > > Yes, it's effective now. I also think we need to change the default > limit of 0.5. It was set for 'fractal' mode initially AFAIK so its > percentage is relative to each node. In this case 0.5% of limit makes > sense because it'll be a very small (absolute) value. > > But With 'graph' mode (now default), there're many entries under 0.5 > overhead and they silently won't show callchains anymore. Actually I > was confused by it when working with this patchset. > > What about 0.005% for the new default? > > > > > > without the option I'm getting empty callchains that are below 0.5 > > but only in TUI mode (attached).. --stdio shows them all unfolded > > It should not show them all. But I found that I missed a check for > a stdio case. Could you please test below? did not help, it's still there.. same output as before jirka