aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index c88c563a59a5..63562595f2b2 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -802,7 +802,7 @@ filter_check_discard(struct ftrace_event_call *call, void *rec,
802 struct ring_buffer *buffer, 802 struct ring_buffer *buffer,
803 struct ring_buffer_event *event) 803 struct ring_buffer_event *event)
804{ 804{
805 if (unlikely(call->filter_active) && 805 if (unlikely(call->flags & TRACE_EVENT_FL_FILTERED) &&
806 !filter_match_preds(call->filter, rec)) { 806 !filter_match_preds(call->filter, rec)) {
807 ring_buffer_discard_commit(buffer, event); 807 ring_buffer_discard_commit(buffer, event);
808 return 1; 808 return 1;