]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Change apply_subsystem_event_filter() paths to check file->system == dir
authorOleg Nesterov <oleg@redhat.com>
Tue, 15 Jul 2014 18:48:29 +0000 (20:48 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 16 Jul 2014 18:33:35 +0000 (14:33 -0400)
commit1d938b68e744e1d0f820de2a29ad83043ac82835
tree73e5fb0db1f01ad6e4031bebc78387c885f1d571
parentc61a8014134096c7f451265916851b8002bf59a4
tracing: Change apply_subsystem_event_filter() paths to check file->system == dir

filter_free_subsystem_preds(), filter_free_subsystem_filters() and
replace_system_preds() can simply check file->system->subsystem and
avoid strcmp(call->class->system).

Better yet, we can pass "struct ftrace_subsystem_dir *dir" instead of
event_subsystem and just check file->system == dir.

Thanks to Namhyung Kim who pointed out that replace_system_preds() can
be changed too.

Link: http://lkml.kernel.org/p/20140715184829.GA20516@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c