]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ftrace: remove condition from ftrace_record_ip
authorSteven Rostedt <srostedt@redhat.com>
Sat, 15 Nov 2008 00:21:19 +0000 (16:21 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Nov 2008 06:29:53 +0000 (07:29 +0100)
Impact: let module functions be recorded when dyn ftrace not enabled

When dynamic ftrace had a daemon and a hash to record the locations
of mcount callers at run time, the recording needed to stop when
ftrace was disabled. But now that the recording is done at compile time
and the ftrace_record_ip is only called at boot up and when a module
is loaded, we no longer need to check if ftrace_enabled is set.
In fact, this breaks module load if it is not set because we skip
over module functions.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c

index 54cb9a7d15e5b74e42968bfc622b4eca3fa45028..3160254f6c7e271ca0f05b9fe6c33617153a4928 100644 (file)
@@ -334,7 +334,7 @@ ftrace_record_ip(unsigned long ip)
 {
        struct dyn_ftrace *rec;
 
-       if (!ftrace_enabled || ftrace_disabled)
+       if (ftrace_disabled)
                return NULL;
 
        rec = ftrace_alloc_dyn_node(ip);