]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: fix set_ftrace_filter
authorSteven Rostedt <srostedt@redhat.com>
Sat, 8 Nov 2008 03:36:02 +0000 (22:36 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Nov 2008 05:17:45 +0000 (00:17 -0500)
Impact: fix of output of set_ftrace_filter

The commit "ftrace: do not show freed records in
             available_filter_functions"

Removed a bit too much from the set_ftrace_filter code, where we now see
all functions in the set_ftrace_filter file even when we set a filter.

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

index 4a39d24568c82ffddbcbfed2a6dcb5d2b9eb7f22..dcac7418f6884a9e279a0a5103ef8aa8f1a9534e 100644 (file)
@@ -738,6 +738,9 @@ t_next(struct seq_file *m, void *v, loff_t *pos)
                    ((iter->flags & FTRACE_ITER_FAILURES) &&
                     !(rec->flags & FTRACE_FL_FAILED)) ||
 
+                   ((iter->flags & FTRACE_ITER_FILTER) &&
+                    !(rec->flags & FTRACE_FL_FILTER)) ||
+
                    ((iter->flags & FTRACE_ITER_NOTRACE) &&
                     !(rec->flags & FTRACE_FL_NOTRACE))) {
                        rec = NULL;