From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933066AbcASVHg (ORCPT ); Tue, 19 Jan 2016 16:07:36 -0500 Received: from mail.kernel.org ([198.145.29.136]:36134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756505AbcASVH3 (ORCPT ); Tue, 19 Jan 2016 16:07:29 -0500 Date: Tue, 19 Jan 2016 18:07:25 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Andi Kleen , 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: <20160119210725.GI27085@kernel.org> References: <1452960197-5323-1-git-send-email-namhyung@kernel.org> <20160117193153.GI4698@two.firstfloor.org> <20160119104506.GB1324@danjae.kornet> <20160119210339.GH27085@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160119210339.GH27085@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jan 19, 2016 at 06:03:39PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Jan 19, 2016 at 07:45:06PM +0900, Namhyung Kim escreveu: > > On Sun, Jan 17, 2016 at 08:31:53PM +0100, Andi Kleen wrote: > > > Now we only need a better percent-limit that handles all > > > leaves correctly... > > Hmm.. could you tell me where the percent-limit doesn't work > > correctly? > Yeah, please elaborate, I'm testing: > perf top -s comm,dso,sym --hierarchy --percent-limit 0.5 > > And it seems to work... For instance, running that top command above, then expanding some of the callchains and pressing 'P' to generate a perf.hist.0 output file, all obey the 0.5 threshold for discading entries with less than that percentage, what is the problem you're noticing? Is it only in stdio or what? - 76.76% cc1 - 62.43% cc1 2.82% [.] _cpp_lex_token 1.59% [.] ht_lookup_with_hash 1.23% [.] ggc_internal_alloc 0.85% [.] bitmap_set_bit 0.53% [.] cpp_get_token_with_location 0.51% [.] ht_lookup - 7.77% libc-2.22.so 2.06% [.] _int_malloc 0.84% [.] _int_free 0.57% [.] _IO_putc 0.55% [.] malloc_consolidate - 5.86% [kernel] - 9.38% as + 6.03% as + 1.39% [kernel] + 1.28% libc-2.22.so - 3.41% gcc + 1.63% [kernel] + 0.64% [unknown] - 0.52% ccache + 2.28% ld + 1.85% perf + 1.45% sh + 1.16% perl + 0.55% make