diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-07-15 14:48:21 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-07-16 14:23:12 -0400 |
commit | b5d09db5ac02660a358f2ac477e85172929e02c8 (patch) | |
tree | 0e7b6c7b421858f0e4d8473e381f6f2c3330b538 /kernel/trace | |
parent | 57375747b6fac0f6cf7b302c4a8adb9043ea8e3b (diff) |
tracing: Kill call_filter_disable()
It seems that the only purpose of call_filter_disable() is to
make filter_disable() less clear and symmetrical, remove it.
Link: http://lkml.kernel.org/p/20140715184821.GA20498@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_events_filter.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index 1edec329be29..54a125c8467a 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c | |||
@@ -774,17 +774,12 @@ static void __free_preds(struct event_filter *filter) | |||
774 | filter->n_preds = 0; | 774 | filter->n_preds = 0; |
775 | } | 775 | } |
776 | 776 | ||
777 | static void call_filter_disable(struct ftrace_event_call *call) | ||
778 | { | ||
779 | call->flags &= ~TRACE_EVENT_FL_FILTERED; | ||
780 | } | ||
781 | |||
782 | static void filter_disable(struct ftrace_event_file *file) | 777 | static void filter_disable(struct ftrace_event_file *file) |
783 | { | 778 | { |
784 | struct ftrace_event_call *call = file->event_call; | 779 | struct ftrace_event_call *call = file->event_call; |
785 | 780 | ||
786 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) | 781 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) |
787 | call_filter_disable(call); | 782 | call->flags &= ~TRACE_EVENT_FL_FILTERED; |
788 | else | 783 | else |
789 | file->flags &= ~FTRACE_EVENT_FL_FILTERED; | 784 | file->flags &= ~FTRACE_EVENT_FL_FILTERED; |
790 | } | 785 | } |