summaryrefslogtreecommitdiffstats
path: root/kernel/locking/Makefile
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2015-01-09 13:06:33 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-01-29 09:19:19 +0100
commitc0a80c0c27e5e65b180a25e6c4c2f7ef9e386cd3 (patch)
tree4c3a34ab47f07da13df0f351db4cef929f07bcf9 /kernel/locking/Makefile
parent4d92f50249eb3ed1c066276e214e8cc7be81e96d (diff)
downloadtalos-obmc-linux-c0a80c0c27e5e65b180a25e6c4c2f7ef9e386cd3.tar.gz
talos-obmc-linux-c0a80c0c27e5e65b180a25e6c4c2f7ef9e386cd3.zip
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/locking/Makefile')
-rw-r--r--kernel/locking/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/locking/Makefile b/kernel/locking/Makefile
index 8541bfdfd232..4caca3f7af53 100644
--- a/kernel/locking/Makefile
+++ b/kernel/locking/Makefile
@@ -2,10 +2,10 @@
obj-y += mutex.o semaphore.o rwsem.o mcs_spinlock.o
ifdef CONFIG_FUNCTION_TRACER
-CFLAGS_REMOVE_lockdep.o = -pg
-CFLAGS_REMOVE_lockdep_proc.o = -pg
-CFLAGS_REMOVE_mutex-debug.o = -pg
-CFLAGS_REMOVE_rtmutex-debug.o = -pg
+CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE)
endif
obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
OpenPOWER on IntegriCloud