]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: make filtered functions effective on setting
authorSteven Rostedt <srostedt@redhat.com>
Wed, 19 Nov 2008 04:57:14 +0000 (23:57 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Nov 2008 05:18:54 +0000 (00:18 -0500)
Impact: fix filter selection to apply when set

It can be confusing when the set_filter_functions is set (or cleared)
and the functions being recorded by the dynamic tracer does not
match.

This patch causes the code to be updated if the function tracer is
enabled and the filter is changed.

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

index dcac7418f6884a9e279a0a5103ef8aa8f1a9534e..5cbddb59e99f5a4fd76cc1ff453a29a84a6d1010 100644 (file)
@@ -1189,7 +1189,7 @@ ftrace_regex_release(struct inode *inode, struct file *file, int enable)
 
        mutex_lock(&ftrace_sysctl_lock);
        mutex_lock(&ftrace_start_lock);
-       if (iter->filtered && ftrace_start && ftrace_enabled)
+       if (ftrace_start && ftrace_enabled)
                ftrace_run_update_code(FTRACE_ENABLE_CALLS);
        mutex_unlock(&ftrace_start_lock);
        mutex_unlock(&ftrace_sysctl_lock);