diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2015-01-09 12:06:33 (GMT) |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-01-29 08:19:19 (GMT) |
commit | c0a80c0c27e5e65b180a25e6c4c2f7ef9e386cd3 (patch) | |
tree | 4c3a34ab47f07da13df0f351db4cef929f07bcf9 /kernel/events | |
parent | 4d92f50249eb3ed1c066276e214e8cc7be81e96d (diff) | |
download | linux-c0a80c0c27e5e65b180a25e6c4c2f7ef9e386cd3.tar.xz |
ftrace: allow architectures to specify ftrace compile options
If the kernel is compiled with function tracer support the -pg compile option
is passed to gcc to generate extra code into the prologue of each function.
This patch replaces the "open-coded" -pg compile flag with a CC_FLAGS_FTRACE
makefile variable which architectures can override if a different option
should be used for code generation.
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/Makefile b/kernel/events/Makefile index 103f5d1..2925188 100644 --- a/kernel/events/Makefile +++ b/kernel/events/Makefile @@ -1,5 +1,5 @@ ifdef CONFIG_FUNCTION_TRACER -CFLAGS_REMOVE_core.o = -pg +CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE) endif obj-y := core.o ring_buffer.o callchain.o |