diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-04-02 01:16:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-14 00:00:54 +0200 |
commit | 77d9f465d46fd67cdb82ee5e1ab99dd57a17c486 (patch) | |
tree | c21063ae5dff55522593f29e952c8a05958c6ce6 /kernel/trace/trace_events_stage_3.h | |
parent | fa1b47dd85453ec7d4bcfe4aa4a2d172ba452fc3 (diff) |
tracing/filters: use ring_buffer_discard_commit for discarded events
The ring_buffer_discard_commit makes better usage of the ring_buffer
when an event has been discarded. It tries to remove it completely if
possible.
This patch converts the trace event filtering to use
ring_buffer_discard_commit instead of the ring_buffer_event_discard.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_events_stage_3.h')
-rw-r--r-- | kernel/trace/trace_events_stage_3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_events_stage_3.h b/kernel/trace/trace_events_stage_3.h index 9d2fa78cecc..d2f34bf30e5 100644 --- a/kernel/trace/trace_events_stage_3.h +++ b/kernel/trace/trace_events_stage_3.h @@ -223,9 +223,9 @@ static void ftrace_raw_event_##call(proto) \ assign; \ \ if (call->preds && !filter_match_preds(call, entry)) \ - ring_buffer_event_discard(event); \ - \ - trace_nowake_buffer_unlock_commit(event, irq_flags, pc); \ + trace_current_buffer_discard_commit(event); \ + else \ + trace_nowake_buffer_unlock_commit(event, irq_flags, pc); \ \ } \ \ |