Re: [RFC][PATCH 2/4] ftrace: Add -mfentry to Makefile on functiontracer

From: Steven Rostedt
Date: Wed Feb 09 2011 - 15:28:58 EST


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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/