commit | 128161f47bc3797b0d068da13e311770685d6e4f | [log] [tgz] |
---|---|---|
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | Fri Nov 15 14:14:45 2019 -0500 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Fri Nov 15 14:25:08 2019 -0500 |
tree | 3613e05d810e762cec293165aebe0f40ba4a58fc | |
parent | 406acdd32d3e7d5a6dcb7f67798e89068fbe0d77 [diff] |
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>