OSDN Git Service

ftrace: Add another check for match in register_ftrace_direct()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 15 Nov 2019 19:19:04 +0000 (14:19 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 15 Nov 2019 19:24:46 +0000 (14:24 -0500)
commit406acdd32d3e7d5a6dcb7f67798e89068fbe0d77
tree9089e86e51e6fce68bd425ab3b83203da1acafeb
parent1c7f9b673dc0a15753274c4e7f5ebfd4468fc69f
ftrace: Add another check for match in register_ftrace_direct()

As an instruction pointer passed into register_ftrace_direct() may just
exist on the ftrace call site, but may not be the start of the call site
itself, register_ftrace_direct() still needs to update test if a direct call
exists on the normalized site, as only one direct call is allowed at any one
time.

Fixes: 763e34e74bb7d ("ftrace: Add register_ftrace_direct()")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c