aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-04-02 01:16:59 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-13 18:00:54 -0400
commit77d9f465d46fd67cdb82ee5e1ab99dd57a17c486 (patch)
treec21063ae5dff55522593f29e952c8a05958c6ce6 /kernel/trace/trace.h
parentfa1b47dd85453ec7d4bcfe4aa4a2d172ba452fc3 (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.h')
-rw-r--r--kernel/trace/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 3cf856fa597..dfefffd7ae3 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -497,6 +497,7 @@ void trace_current_buffer_unlock_commit(struct ring_buffer_event *event,
497 unsigned long flags, int pc); 497 unsigned long flags, int pc);
498void trace_nowake_buffer_unlock_commit(struct ring_buffer_event *event, 498void trace_nowake_buffer_unlock_commit(struct ring_buffer_event *event,
499 unsigned long flags, int pc); 499 unsigned long flags, int pc);
500void trace_current_buffer_discard_commit(struct ring_buffer_event *event);
500 501
501struct trace_entry *tracing_get_trace_entry(struct trace_array *tr, 502struct trace_entry *tracing_get_trace_entry(struct trace_array *tr,
502 struct trace_array_cpu *data); 503 struct trace_array_cpu *data);