lkml.org 
[lkml]   [2008]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH 01/11] Add basic support for gcc profiler instrumentation
From
Date

On Thu, 2008-01-03 at 02:16 -0500, Steven Rostedt wrote:
> Index: linux-compile.git/Makefile
> ===================================================================
> --- linux-compile.git.orig/Makefile 2008-01-03 01:02:28.000000000 -0500
> +++ linux-compile.git/Makefile 2008-01-03 01:02:39.000000000 -0500
> @@ -509,11 +509,15 @@ endif
>
> include $(srctree)/arch/$(SRCARCH)/Makefile
>
> +ifdef CONFIG_MCOUNT
> +KBUILD_CFLAGS += -pg -fno-omit-frame-pointer -fno-optimize-sibling-calls
> +else
> ifdef CONFIG_FRAME_POINTER
> KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
> else
> KBUILD_CFLAGS += -fomit-frame-pointer
> endif
> +endif
>
> ifdef CONFIG_DEBUG_INFO
> KBUILD_CFLAGS += -g

I'd much prefer if you used -finstrument-function since it's already
architecture independent .. It was suggested not too long ago.. There is
also another tracing patchset that is similar to this one which uses it
(KFT)..

Daniel



\
 
 \ /
  Last update: 2008-01-03 17:05    [W:0.168 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site