]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ftrace: Remove force undef config value left for testing
authorSteven Rostedt <srostedt@redhat.com>
Fri, 4 Nov 2011 14:45:23 +0000 (10:45 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 5 Dec 2011 18:28:45 +0000 (13:28 -0500)
A forced undef of a config value was used for testing and was
accidently left in during the final commit. This causes x86 to
run slower than needed while running function tracing as well
as causes the function graph selftest to fail when DYNMAIC_FTRACE
is not set. This is because the code in MCOUNT expects the ftrace
code to be processed with the config value set that happened to
be forced not set.

The forced config option was left in by:
    commit 6331c28c962561aee59e5a493b7556a4bb585957
    ftrace: Fix dynamic selftest failure on some archs

Link: http://lkml.kernel.org/r/20111102150255.GA6973@debian
Cc: stable@vger.kernel.org
Reported-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c

index 900b409543db10cfc46b9da703f463a1cee9b78e..1276b3ca15982b8a55dea94a6f2cf8e3d688640f 100644 (file)
@@ -152,7 +152,6 @@ void clear_ftrace_function(void)
        ftrace_pid_function = ftrace_stub;
 }
 
-#undef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
 #ifndef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
 /*
  * For those archs that do not test ftrace_trace_stop in their