]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: let notrace function attribute disable hotpatching if necessary
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 18 Jan 2015 15:45:42 +0000 (16:45 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Jan 2015 08:19:23 +0000 (09:19 +0100)
commit8c302c6174eab62737f40a0c0109112375f52170
tree0a659126e4c54bd63a6a86ebb6de8bfabc8ceff8
parentaabb83d51d4c776a49c4690be22ae1d213505e5f
ftrace: let notrace function attribute disable hotpatching if necessary

gcc supports an s390 specific function attribute called "hotpatch".
It can be used to specify the number of halfwords that shall be added before
and after a function and which shall be filled with nops for runtime patching.

s390 will use the hotpatch attribute for function tracing, therefore make
sure that the notrace function attribute either disables the mcount call
or in case of hotpatch nop 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>
include/linux/compiler.h