Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752186Ab0HUOmo (ORCPT ); Sat, 21 Aug 2010 10:42:44 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:59028 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751773Ab0HUOml (ORCPT ); Sat, 21 Aug 2010 10:42:41 -0400 Date: Sat, 21 Aug 2010 10:42:39 -0400 From: Christoph Hellwig To: Frederic Weisbecker Cc: Christoph Hellwig , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra Subject: Re: callchain sampling bug in perf? Message-ID: <20100821144239.GA31202@infradead.org> References: <20100815225359.GA32152@infradead.org> <20100819005720.GB5324@nowhere> <20100819085700.GB8782@infradead.org> <20100819150422.GA325@ghostprotocols.net> <20100820091645.GA20138@infradead.org> <20100821024713.GD7959@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100821024713.GD7959@nowhere> User-Agent: Mutt/1.5.20 (2009-08-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1826 Lines: 43 On Sat, Aug 21, 2010 at 04:47:14AM +0200, Frederic Weisbecker wrote: > > I still see the same problems as with the TUI perf report with that. > > With the -g {mode},0.0 there is nothing to expand inside the GUI for > ^^ > you meant "without", right? Yes, sorry. > The following patch solves that particular problem, I'll push it to Ingo for .36 > (and -stable): It does seem to fix the bug for some cases but not all. Default perf report in TUI and the normal command line seem to get it right. perf report -g flat still shows the old problem. perf report -g flat,0.0 shows callgraphs, but just as before they just show the 0. percentages. Btw, even in normal perf report mode the numbers while they look correct confused me a bit. The percentages before the callgraphs split are always relative to the node above, not absolute which is rather confusing. And even despite adding -n to the perf report command line I only get absolute numbers for the proccesses but not the actual callgraphs. > > Also the flat mode is rendered incorrectly, it just adds different call > > graphs inside a single process directly after each other instead of > > separating them in the rendering. > > > I'm not sure what you mean. The flat format is a pure dump of every callchains > that belong to a single process (or whatever kind of histogram source...). > > What do you mean by separating them in the rendering? If there are different callchains leading to the same tracepoint they are just appened to each other with no visual indication that they are separate callchains -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/