tracing: Kill destroy_preds() and destroy_file_preds()
authorOleg Nesterov <oleg@redhat.com>
Tue, 15 Jul 2014 18:48:13 +0000 (20:48 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 16 Jul 2014 18:19:55 +0000 (14:19 -0400)
commit3e5454d6568c203bca712e1976b052c345f47b44
treeadbb0a9c23491a78f02a88aeb221a9e355f7a1cd
parent97b8ee845393701edc06e27ccec2876ff9596019
tracing: Kill destroy_preds() and destroy_file_preds()

destroy_preds() makes no sense.

The only caller, event_remove(), actually wants destroy_file_preds().
__trace_remove_event_call() does destroy_call_preds() which takes care
of call->filter.

And after the previous change we can simply remove destroy_preds() from
event_remove(), we are going to call remove_event_from_tracers() which
in turn calls remove_event_file_dir()->free_event_filter().

Link: http://lkml.kernel.org/p/20140715184813.GA20488@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
kernel/trace/trace_events.c
kernel/trace/trace_events_filter.c