tracing/filters: use ring_buffer_discard_commit for discarded events
authorSteven Rostedt <srostedt@redhat.com>
Thu, 2 Apr 2009 05:16:59 +0000 (01:16 -0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Apr 2009 22:00:54 +0000 (00:00 +0200)
commit77d9f465d46fd67cdb82ee5e1ab99dd57a17c486
treec21063ae5dff55522593f29e952c8a05958c6ce6
parentfa1b47dd85453ec7d4bcfe4aa4a2d172ba452fc3
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>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events_stage_3.h