From: Steven Rostedt Date: Wed, 25 Apr 2012 17:48:13 +0000 (-0400) Subject: ftrace: Consolidate ftrace_location() and ftrace_text_reserved() X-Git-Tag: v3.5-rc1~141^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a650e02a528ab9d6d6f0b8b57745c32f2a138459;p=pandora-kernel.git 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 Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed