]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ftrace/x86_32: Push ftrace_ops in as 3rd parameter to function tracer
authorSteven Rostedt <srostedt@redhat.com>
Thu, 11 Aug 2011 02:00:55 +0000 (22:00 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 19 Jul 2012 17:19:27 +0000 (13:19 -0400)
Add support of passing the current ftrace_ops into the 3rd parameter
of the callback to the function tracer.

Link: http://lkml.kernel.org/r/20120612225424.942411318@goodmis.org
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/include/asm/ftrace.h
arch/x86/kernel/entry_32.S

index 783b107eacbcfef6176a9454b72314990c6adfd4..b3bb1f3f27734adde2a4aab21c32a8602b5ea878 100644 (file)
@@ -32,7 +32,7 @@
 #define MCOUNT_ADDR            ((long)(mcount))
 #define MCOUNT_INSN_SIZE       5 /* sizeof mcount call */
 
-#if defined(CONFIG_DYNAMIC_FTRACE) && defined(CONFIG_X86_64)
+#ifdef CONFIG_DYNAMIC_FTRACE
 #define ARCH_SUPPORTS_FTRACE_OPS 1
 #endif
 
index 623f288374763286ec9e58aa66ecabb4e3fc2f6b..e3e17a0b7ff8b7f524a29c97bd92285fbeae4efb 100644 (file)
@@ -1111,6 +1111,7 @@ ENTRY(ftrace_caller)
        pushl %edx
        movl 0xc(%esp), %eax
        movl 0x4(%ebp), %edx
+       leal function_trace_op, %ecx
        subl $MCOUNT_INSN_SIZE, %eax
 
 .globl ftrace_call