]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: allow architectures to specify ftrace compile options
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 9 Jan 2015 12:06:33 +0000 (13:06 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Jan 2015 08:19:19 +0000 (09:19 +0100)
commitaabb83d51d4c776a49c4690be22ae1d213505e5f
tree4c3a34ab47f07da13df0f351db4cef929f07bcf9
parentea035c83bda2aea81838532db3e4f1f4c2f53b33
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>
Makefile
kernel/Makefile
kernel/events/Makefile
kernel/locking/Makefile
kernel/sched/Makefile
kernel/trace/Makefile
lib/Makefile
scripts/Makefile.build