lkml.org 
[lkml]   [2011]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 2/4] ftrace: Add -mfentry to Makefile on function tracer
From
Date
On Wed, 2011-02-09 at 15:02 -0500, Steven Rostedt wrote:

> ifdef CONFIG_FUNCTION_TRACER
> -KBUILD_CFLAGS += -pg
> +ifdef CONFIG_HAVE_FENTRY
> +CC_HAS_FENTRY := $(call cc-option, -mfentry -DCC_HAS_FENTRY)

I should include a thanks to H. Peter Anvin in the change log for
telling me about the cc-option trick.

-- Steve

> +endif
> +KBUILD_CFLAGS += -pg $(CC_HAS_FENTRY)
> +KBUILD_AFLAGS += $(CC_HAS_FENTRY)
> ifdef CONFIG_DYNAMIC_FTRACE
> ifdef CONFIG_HAVE_C_RECORDMCOUNT
> BUILD_C_RECORDMCOUNT := y




\
 
 \ /
  Last update: 2011-02-09 21:31    [W:0.133 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site