mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
57375747b6
commit
b5d09db5ac
@ -774,17 +774,12 @@ static void __free_preds(struct event_filter *filter)
|
||||
filter->n_preds = 0;
|
||||
}
|
||||
|
||||
static void call_filter_disable(struct ftrace_event_call *call)
|
||||
{
|
||||
call->flags &= ~TRACE_EVENT_FL_FILTERED;
|
||||
}
|
||||
|
||||
static void filter_disable(struct ftrace_event_file *file)
|
||||
{
|
||||
struct ftrace_event_call *call = file->event_call;
|
||||
|
||||
if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
|
||||
call_filter_disable(call);
|
||||
call->flags &= ~TRACE_EVENT_FL_FILTERED;
|
||||
else
|
||||
file->flags &= ~FTRACE_EVENT_FL_FILTERED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user