diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-04-25 13:48:13 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-05-16 19:58:48 -0400 |
commit | a650e02a528ab9d6d6f0b8b57745c32f2a138459 (patch) | |
tree | 34bf32bc4c3b8ccec7e33dbe12a26d51075f779a /Kbuild | |
parent | 9644302e3315e7e36495d230d5ac7125a316d33e (diff) | |
download | linux-a650e02a528ab9d6d6f0b8b57745c32f2a138459.tar.gz linux-a650e02a528ab9d6d6f0b8b57745c32f2a138459.tar.bz2 linux-a650e02a528ab9d6d6f0b8b57745c32f2a138459.zip |
ftrace: Consolidate ftrace_location() and ftrace_text_reserved()
Both ftrace_location() and ftrace_text_reserved() do basically the same thing.
They search to see if an address is in the ftace table (contains an address
that may change from nop to call ftrace_caller). The difference is
that ftrace_location() searches a single address, but ftrace_text_reserved()
searches a range.
This also makes the ftrace_text_reserved() faster as it now uses a bsearch()
instead of linearly searching all the addresses within a page.
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions