tracing/filter: Separate predicate init and filter addition
authorJiri Olsa <jolsa@redhat.com>
Thu, 11 Aug 2011 14:25:46 +0000 (16:25 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 19 Aug 2011 18:35:51 +0000 (14:35 -0400)
commit9d96cd1743547f07a8a6c51a3f7741cfca0a0bee
treeb013bf238a63661eccb7134b0e9631ff09464a47
parent81570d9caaad46a056580c9af078c5c55e6c764f
tracing/filter: Separate predicate init and filter addition

Making the code cleaner by having one function to fully prepare
the predicate (create_pred), and another to add the predicate to
the filter (filter_add_pred).

As a benefit, this way the dry_run flag stays only inside the
replace_preds function and is not passed deeper.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1313072754-4620-3-git-send-email-jolsa@redhat.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c