]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 25 Nov 2014 02:00:34 +0000 (21:00 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 1 Dec 2014 19:08:58 +0000 (14:08 -0500)
commit8ed0f660e43688938657029dc3a21842aac6bae1
tree90dcca551768f0056ba993622062c7458eef4834
parent17854e682ff4000a45528d0ecd4440f61d1830cc
ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter

The function graph helper function prepare_ftrace_return() which does the work
to hijack the parent pointer has that parent pointer as its first parameter.
Instead, if we make it the second parameter and have ip as the first parameter
(self_addr), then it can use the %rdi from save_mcount_regs that loads it
already.

Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1411262304010.3961@nanos
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c
arch/x86/kernel/mcount_64.S