]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Make get_ftrace_addr() and get_ftrace_addr_old() global
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 7 May 2014 01:34:14 +0000 (21:34 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 14 May 2014 15:37:29 +0000 (11:37 -0400)
commit8fed12c37f79e48e0a123b7626a5473ce2fee726
treec3060be62f4f8a6d94cfe1f390c12e2d0285435e
parenteefea86eeff562e0d992c94be8bb021305167b00
ftrace: Make get_ftrace_addr() and get_ftrace_addr_old() global

Move and rename get_ftrace_addr() and get_ftrace_addr_old() to
ftrace_get_addr_new() and ftrace_get_addr_curr() respectively.

This moves these two helper functions in the generic code out from
the arch specific code, and renames them to have a better generic
name. This will allow other archs to use them as well as makes it
a bit easier to work on getting separate trampolines for different
functions.

ftrace_get_addr_new() returns the trampoline address that the mcount
call address will be converted to.

ftrace_get_addr_curr() returns the trampoline address of what the
mcount call address currently jumps to.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c
include/linux/ftrace.h
kernel/trace/ftrace.c