tracing/filters: Fix to make system filter work
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 28 Oct 2009 09:37:01 +0000 (17:37 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 29 Oct 2009 07:53:20 +0000 (08:53 +0100)
commit fce29d15b59245597f7f320db4a9f2be0f5fb512
("tracing/filters: Refactor subsystem filter code")
broke system filter accidentally.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <4AE810BD.3070009@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events_filter.c

index 21d34757b955d5cec8938b7159916ea7e7125793..50504cb228deded61a141aca151c3d802719b2c2 100644 (file)
@@ -1230,12 +1230,12 @@ static int replace_system_preds(struct event_subsystem *system,
                                struct filter_parse_state *ps,
                                char *filter_string)
 {
-       struct event_filter *filter = system->filter;
        struct ftrace_event_call *call;
        bool fail = true;
        int err;
 
        list_for_each_entry(call, &ftrace_events, list) {
+               struct event_filter *filter = call->filter;
 
                if (!call->define_fields)
                        continue;