OSDN Git Service

ftrace: Add modify_ftrace_direct()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 14 Nov 2019 19:39:35 +0000 (14:39 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 15 Nov 2019 03:45:47 +0000 (22:45 -0500)
commit0567d6809182df53da03636fad36c507c5cf07a5
treefc9c3c407546b885a43fc68180e0851b219d3b3f
parent36b3615dc3b625c8b587f34e413a600f7ac16403
ftrace: Add modify_ftrace_direct()

Add a new function modify_ftrace_direct() that will allow a user to update
an existing direct caller to a new trampoline, without missing hits due to
unregistering one and then adding another.

Link: https://lore.kernel.org/r/20191109022907.6zzo6orhxpt5n2sv@ast-mbp.dhcp.thefacebook.com
Suggested-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c