ftrace/x86: Call text_ip_addr() instead of the duplicated code
authorPetr Mladek <pmladek@suse.cz>
Tue, 3 Jun 2014 16:23:21 +0000 (18:23 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 3 Jun 2014 23:44:37 +0000 (19:44 -0400)
commit964f7b6b785651a75ef1cbad43a393ca52d4b4f7
tree87e509844480a523f08c87d9eccba749f27cdffb
parente3172181946fadd3bd0e4c362931094ba87e5718
ftrace/x86: Call text_ip_addr() instead of the duplicated code

I just went over this when looking at some Xen-related ftrace initialization
problems. They were related to Xen code that is not upstream but this clean up
would make sense here.

I think that this was already the intention when text_ip_addr() was introduced
in the commit 87fbb2ac6073a703930 (ftrace/x86: Use breakpoints for converting
function graph caller). Anyway, better do it now before it shots people into
their leg ;-)

Link: http://lkml.kernel.org/p/1401812601-2359-1-git-send-email-pmladek@suse.cz
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c