ftrace/x86: Load ftrace_ops in parameter not the variable holding it
authorSteven Rostedt <[email protected]>
Wed, 13 Nov 2013 20:20:04 +0000 (15:20 -0500)
committerH. Peter Anvin <[email protected]>
Thu, 9 Jan 2014 21:24:29 +0000 (13:24 -0800)
commit1739f09e33d8f66bf48ddbc3eca615574da6c4f6
treecb6bbe381ad28a345d4a69565835bfb328fdba1c
parentd6e0a2dd12f4067a5bcefb8bbd8ddbeff800afbc
ftrace/x86: Load ftrace_ops in parameter not the variable holding it

Function tracing callbacks expect to have the ftrace_ops that registered it
passed to them, not the address of the variable that holds the ftrace_ops
that registered it.

Use a mov instead of a lea to store the ftrace_ops into the parameter
of the function tracing callback.

Signed-off-by: Steven Rostedt <[email protected]>
Reviewed-by: Masami Hiramatsu <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
Cc: <[email protected]> # v3.8+
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_64.S