Messages in this thread | | | Subject | Re: [RFC][PATCH 2/4] ftrace: Add -mfentry to Makefile on function tracer | From | Steven Rostedt <> | Date | Wed, 09 Feb 2011 15:28:52 -0500 |
| |
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
| |