ftrace/x86: Get the current mcount addr for add_breakpoint()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 6 May 2014 20:26:39 +0000 (16:26 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 14 May 2014 15:37:28 +0000 (11:37 -0400)
commit94792ea07ce2cceef48803c4df3cb5efacb21c9a
tree43c681d6b6d99b9dac26f0ab71fc4c74f8155e2a
parent68f40969f0173c02ddc22a40df865c81c29070e4
ftrace/x86: Get the current mcount addr for add_breakpoint()

The add_breakpoint() code in the ftrace updating gets the address
of what the call will become, but if the mcount address is changing
from regs to non-regs ftrace_caller or vice versa, it will use what
the record currently is.

This is rather silly as the code should always use what is currently
there regardless of if it's changing the regs function or just converting
to a nop.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c
This page took 0.051069 seconds and 5 git commands to generate.