Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756300AbYBJMSV (ORCPT ); Sun, 10 Feb 2008 07:18:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752661AbYBJMSM (ORCPT ); Sun, 10 Feb 2008 07:18:12 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:37411 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660AbYBJMSL (ORCPT ); Sun, 10 Feb 2008 07:18:11 -0500 Date: Sun, 10 Feb 2008 13:18:09 +0100 (CET) From: Jan Engelhardt To: Ingo Molnar cc: linux-kernel@vger.kernel.org, Linus Torvalds , Andrew Morton , Steven Rostedt Subject: Re: [10/19] ftrace: add basic support for gcc profiler instrumentation In-Reply-To: <20080210072035.GK4100@elte.hu> Message-ID: References: <20080210072035.GK4100@elte.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 780 Lines: 23 On Feb 10 2008 08:20, Ingo Molnar wrote: >--- linux.orig/Makefile >+++ linux/Makefile >@@ -509,6 +509,9 @@ endif > > include $(srctree)/arch/$(SRCARCH)/Makefile > >+ifdef CONFIG_FTRACE >+KBUILD_CFLAGS += -pg >+endif > ifdef CONFIG_FRAME_POINTER > KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls > else You should use -fno-omit-frame-pointer when building with -pg; As far as I can remember from using gprof in the past (in userspace, I might add), the output does not make much sense without frame boundaries. -- 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/