ftrace: Separate out functionality from ftrace_location_range()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 8 Nov 2019 17:26:46 +0000 (12:26 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 8 Nov 2019 17:26:46 +0000 (12:26 -0500)
commit7e16f581a81759bafea04d049134b32d1a881226
tree0e38f5c34c060b2eae878e42ad8a3d437f912289
parent714641c3670cdc75371a7ff5bdfd5e9a170c7ffd
ftrace: Separate out functionality from ftrace_location_range()

Create a new function called lookup_rec() from the functionality of
ftrace_location_range(). The difference between lookup_rec() is that it
returns the record that it finds, where as ftrace_location_range() returns
only if it found a match or not.

The lookup_rec() is static, and can be used for new functionality where
ftrace needs to find a record of a specific address.

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