|
@@ -810,26 +810,6 @@ void destroy_call_preds(struct ftrace_event_call *call)
|
|
|
call->filter = NULL;
|
|
|
}
|
|
|
|
|
|
-static void destroy_file_preds(struct ftrace_event_file *file)
|
|
|
-{
|
|
|
- __free_filter(file->filter);
|
|
|
- file->filter = NULL;
|
|
|
-}
|
|
|
-
|
|
|
-/*
|
|
|
- * Called when destroying the ftrace_event_file.
|
|
|
- * The file is being freed, so we do not need to worry about
|
|
|
- * the file being currently used. This is for module code removing
|
|
|
- * the tracepoints from within it.
|
|
|
- */
|
|
|
-void destroy_preds(struct ftrace_event_file *file)
|
|
|
-{
|
|
|
- if (file->event_call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
|
|
|
- destroy_call_preds(file->event_call);
|
|
|
- else
|
|
|
- destroy_file_preds(file);
|
|
|
-}
|
|
|
-
|
|
|
static struct event_filter *__alloc_filter(void)
|
|
|
{
|
|
|
struct event_filter *filter;
|