From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederic Weisbecker Subject: Re: Callgraph like kcachegrind Date: Fri, 6 Jul 2012 09:40:21 +0200 Message-ID: <20120706074018.GA7728@somewhere.redhat.com> References: <20120705004428.GA17035@infradead.org> <87obntlon0.fsf@sejong.aot.lge.com> <4FF6363A.3020206@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-gh0-f174.google.com ([209.85.160.174]:58389 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932992Ab2GFHk1 (ORCPT ); Fri, 6 Jul 2012 03:40:27 -0400 Received: by ghrr11 with SMTP id r11so8306972ghr.19 for ; Fri, 06 Jul 2012 00:40:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Namhyung Kim Cc: Arun Sharma , Arnaldo Carvalho de Melo , Christoph Bartoschek , linux-perf-users@vger.kernel.org On Fri, Jul 06, 2012 at 10:28:28AM +0900, Namhyung Kim wrote: > Hi, > > On Fri, Jul 6, 2012 at 9:50 AM, Arun Sharma wrote: > > On 7/5/12 5:27 PM, Namhyung Kim wrote: > >> > >> On Wed, 4 Jul 2012 21:44:28 -0300, Arnaldo Carvalho de Melo wrote: > >>> > >>> Em Thu, Jun 28, 2012 at 02:59:39PM +0200, Christoph Bartoschek escreveu: > >>>> > >>>> is it somehow possible to get a callgraph like gets it from kcachegrind? > >>>> > >>>> I tried to use -g/-G on a program that runs but the information is not > >>>> as > >>>> expected. I do not see how the 100% runtime of main() is distributed. > >>> > >>> > >>> This is a feature we should have, but till then I think there is a > >>> script out there that does that, lemme try to google that, gack, I know > >>> there is one, but 'perf tools' really isn't google friendly, anyone? > >>> > >> > >> I saw Arun posted a kind of cumulative (or inclusive) call graph patch > >> long ago. I guess it'd be the first step to have the feature like above. > >> And IIRC Ingo wanted to have it too. > >> > >> Arun, what's the state of the patch? > >> > > > > http://thread.gmane.org/gmane.linux.kernel.perf.user/882 is the most recent > > patch I posted. > > > > The last comments I got were: > > > > * Use a global flag instead of a sort mode > > * Try to integrate with LBR, branch filtering mode. > > > > Unfortunately, I'm tied up with other projects right now and am not able to > > finish this up. Happy to answer questions about the patch if anyone wants to > > take it over. > > > > Ok, I'll try to look at it. > > > > http://thread.gmane.org/gmane.linux.kernel.perf.user/857 (callgraph > > filtering) is also related. > > > > And this one once the above gets settled. Another thing that could be interesting is a perf output mode that dumps informations in the Kcachegrind format: http://kcachegrind.sourceforge.net/html/CallgrindFormat.html so that Kcachegrind can open it.