Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751604Ab2J2TJO (ORCPT ); Mon, 29 Oct 2012 15:09:14 -0400 Received: from merlin.infradead.org ([205.233.59.134]:51691 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750719Ab2J2TJN convert rfc822-to-8bit (ORCPT ); Mon, 29 Oct 2012 15:09:13 -0400 Message-ID: <1351537727.4047.21.camel@twins> Subject: Re: [RFC/PATCHSET 00/15] perf report: Add support to accumulate hist periods From: Peter Zijlstra To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Paul Mackerras , Ingo Molnar , LKML , Frederic Weisbecker , Arun Sharma , David Ahern , Jiri Olsa Date: Mon, 29 Oct 2012 20:08:47 +0100 In-Reply-To: <1347520811-28150-1-git-send-email-namhyung@kernel.org> References: <1347520811-28150-1-git-send-email-namhyung@kernel.org> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1730 Lines: 39 On Thu, 2012-09-13 at 16:19 +0900, Namhyung Kim wrote: > When --cumulate option is given, it'll be shown like this: > > $ perf report --cumulate > (...) > + 93.63% abc libc-2.15.so [.] __libc_start_main > + 93.35% abc abc [.] main > + 93.35% abc abc [.] c > + 93.35% abc abc [.] b > + 93.35% abc abc [.] a > + 5.17% abc ld-2.15.so [.] _dl_map_object > + 5.17% abc ld-2.15.so [.] _dl_map_object_from_fd > + 1.13% abc ld-2.15.so [.] _dl_start_user > + 1.13% abc ld-2.15.so [.] _dl_start > + 0.29% abc perf [.] main > + 0.29% abc perf [.] run_builtin > + 0.29% abc perf [.] cmd_record > + 0.29% abc libpthread-2.15.so [.] __libc_close > + 0.07% abc ld-2.15.so [.] _start > + 0.07% abc [kernel.kallsyms] [k] page_fault > > (This output came from TUI since stdio bothered by callchains) Right, so I tried this and I would expect the callchains to be inverted too, so that when I expand say 'c' I would see that 'c' calls 'b' for 100% which calls 'a' for 100%. Instead I get the regular callchains, expanding 'c' gives me main calls it for 100%. Adding -G (invert callchains) doesn't make it better, in that case, when I expand 'c' we start at '__libc_start_main' instead of 'c'. Is there anything I'm missing? -- 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/