]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Make ftrace_location() a nop on !DYNAMIC_FTRACE
authorSteven Rostedt <srostedt@redhat.com>
Wed, 6 Jun 2012 17:45:31 +0000 (13:45 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 31 Jul 2012 14:29:57 +0000 (10:29 -0400)
commit9c16b2f178421b61e584847fdd12a6328e495de5
tree402e75bf6edb5761ea4c2312778d137c0e0dcf44
parentdb6562262db94174927e60b4206e881feca2d0cf
ftrace: Make ftrace_location() a nop on !DYNAMIC_FTRACE

When CONFIG_DYNAMIC_FTRACE is not set, ftrace_location() is not defined.
If a user (like kprobes) references this function, it will break
the compile when CONFIG_DYNAMIC_FTRACE is not set.

Add ftrace_location() as a nop (return 0) when DYNAMIC_FTRACE
is not defined.

Link: http://lkml.kernel.org/r/20120612225426.961092717@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h