aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-12-16 19:27:42 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-12-21 07:20:50 -0500
commit5855fead9cc358adebd6bdeec202d040c623ae38 (patch)
treec95d272ff41b7873cc33feef3686ede3f020d4cd /include/linux/ftrace.h
parentftrace: Sort the mcount records on each page (diff)
downloadwireguard-linux-5855fead9cc358adebd6bdeec202d040c623ae38.tar.xz
wireguard-linux-5855fead9cc358adebd6bdeec202d040c623ae38.zip
ftrace: Use bsearch to find record ip
Now that each set of pages in the function list are sorted by ip, we can use bsearch to find a record within each set of pages. This speeds up the ftrace_location() function by magnitudes. For archs (like x86) that need to add a breakpoint at every function that will be converted from a nop to a callback and vice versa, the breakpoint callback needs to know if the breakpoint was for ftrace or not. It requires finding the breakpoint ip within the records. Doing a linear search is extremely inefficient. It is a must to be able to do a fast binary search to find these locations. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
0 files changed, 0 insertions, 0 deletions