ftrace/x86: Remove function_trace_stop check from graph caller
authorSteven Rostedt <srostedt@redhat.com>
Tue, 3 Jul 2012 20:16:09 +0000 (16:16 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 31 Jul 2012 14:29:51 +0000 (10:29 -0400)
The graph caller is called by the mcount callers, which already does
the check against the function_trace_stop variable. No reason to
check it again.

Link: http://lkml.kernel.org/r/20120711195745.588538769@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_64.S

index 4dc301709e786533825b10d398f082682547aa17..061ac17ee974ae78fed3e4238aa331d6d828f61f 100644 (file)
@@ -1241,9 +1241,6 @@ END(mcount)
 
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
 ENTRY(ftrace_graph_caller)
-       cmpl $0, function_trace_stop
-       jne ftrace_stub
-
        pushl %eax
        pushl %ecx
        pushl %edx
index 52bda2e8f7aa60455b4c2aaa38af35623c4f9822..38308fa7d7e50d54f09a0e67c9d04cd4b3795732 100644 (file)
@@ -213,9 +213,6 @@ END(mcount)
 
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
 ENTRY(ftrace_graph_caller)
-       cmpl $0, function_trace_stop
-       jne ftrace_stub
-
        MCOUNT_SAVE_FRAME
 
        leaq 8(%rbp), %rdi