aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-12-10 23:49:49 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-12-11 23:28:54 -0500
commitf823b37ba6703f7cc65c8a2350872a67f080cafe (patch)
treeaee740367e1afe425bdba29af9cfb0dd41167125
parent3558a5ac50dbb2419cc649d5e154af161d661037 (diff)
ftrace/x86: Update i386 call to prepare_ftrace_return()
The parameters for prepare_ftrace_return() used by the function graph tracer were swapped to simplify the code on x86_64. But i386 function graph trampoline also calls this function, and it did not have its parameters swapped. Link: http://lkml.kernel.org/r/20141210231732.GA24163@wfg-t540p.sh.intel.com Reported-by: Fengguang Wu <fengguang.wu@intel.com> Tested-by: Fengguang Wu <fengguang.wu@intel.com> Fixes: 6a06bdbf7f9c "ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter" Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--arch/x86/kernel/entry_32.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index b553ed89e5f5..df3e608d409b 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -1192,10 +1192,10 @@ ENTRY(ftrace_graph_caller)
1192 pushl %eax 1192 pushl %eax
1193 pushl %ecx 1193 pushl %ecx
1194 pushl %edx 1194 pushl %edx
1195 movl 0xc(%esp), %edx 1195 movl 0xc(%esp), %eax
1196 lea 0x4(%ebp), %eax 1196 lea 0x4(%ebp), %edx
1197 movl (%ebp), %ecx 1197 movl (%ebp), %ecx
1198 subl $MCOUNT_INSN_SIZE, %edx 1198 subl $MCOUNT_INSN_SIZE, %eax
1199 call prepare_ftrace_return 1199 call prepare_ftrace_return
1200 popl %edx 1200 popl %edx
1201 popl %ecx 1201 popl %ecx