]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Add helper find_direct_entry() to consolidate code
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 15 Nov 2019 19:14:45 +0000 (14:14 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 15 Nov 2019 19:25:08 +0000 (14:25 -0500)
commita91d07157a5ef439ab1ab197dd60c46221f69537
tree3613e05d810e762cec293165aebe0f40ba4a58fc
parentc322a4800292af72146ac897ecb9cf8e0dfbf2ad
ftrace: Add helper find_direct_entry() to consolidate code

Both unregister_ftrace_direct() and modify_ftrace_direct() needs to
normalize the ip passed in to match the rec->ip, as it is acceptable to have
the ip on the ftrace call site but not the start. There are also common
validity checks with the record found by the ip, these should be done for
both unregister_ftrace_direct() and modify_ftrace_direct().

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c