aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-08-04 15:02:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-04 15:02:48 -0400
commitc9b88e9581828bb8bba06c5e7ee8ed1761172b6e (patch)
tree08f025f4e5ff9f33bb40f89e790a1dd6db04e75c /kernel/trace/trace_events.c
parentb8c0aa46b3e86083721b57ed2eec6bd2c29ebfba (diff)
parent6355d54438bfc3b636cb6453cd091f782fb9b4d7 (diff)
Merge tag 'trace-3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing filter cleanups from Steven Rostedt: "Oleg Nesterov did several clean ups with the tracing filter code. As he found some small bugs that went into 3.16, and these changes were based on that, I had to apply his changes to a separate branch than my main development branch. This was based on work that was already pulled into 3.16, and is a separate pull request to keep from having local merges in my pull request" * tag 'trace-3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing: Kill "filter_string" arg of replace_preds() tracing: Change apply_subsystem_event_filter() paths to check file->system == dir tracing: Kill ftrace_event_call->files tracing/uprobes: Kill the dead TRACE_EVENT_FL_USE_CALL_FILTER logic tracing: Kill call_filter_disable() tracing: Kill destroy_call_preds() tracing: Kill destroy_preds() and destroy_file_preds()
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 3154eb39241d..ef06ce7e9cf8 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -1621,7 +1621,6 @@ static void event_remove(struct ftrace_event_call *call)
1621 if (file->event_call != call) 1621 if (file->event_call != call)
1622 continue; 1622 continue;
1623 ftrace_event_enable_disable(file, 0); 1623 ftrace_event_enable_disable(file, 0);
1624 destroy_preds(file);
1625 /* 1624 /*
1626 * The do_for_each_event_file() is 1625 * The do_for_each_event_file() is
1627 * a double loop. After finding the call for this 1626 * a double loop. After finding the call for this
@@ -1748,7 +1747,8 @@ static void __trace_remove_event_call(struct ftrace_event_call *call)
1748{ 1747{
1749 event_remove(call); 1748 event_remove(call);
1750 trace_destroy_fields(call); 1749 trace_destroy_fields(call);
1751 destroy_call_preds(call); 1750 free_event_filter(call->filter);
1751 call->filter = NULL;
1752} 1752}
1753 1753
1754static int probe_remove_event_call(struct ftrace_event_call *call) 1754static int probe_remove_event_call(struct ftrace_event_call *call)