[PATCH] tracing: wake up tasks reading trace_pipe on write to trace_marker

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marcin Slusarz
Date: Tuesday, July 27, 2010 - 3:44 pm

Currently we rely on other code periodically waking up trace reader.
If there aren't any other data than markers, reader will never be woken up.
Fix it.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
---
 kernel/trace/trace.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 086d363..02e04c8 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1520,6 +1520,7 @@ int trace_array_vprintk(struct trace_array *tr,
 	if (!filter_check_discard(call, entry, buffer, event)) {
 		ring_buffer_unlock_commit(buffer, event);
 		ftrace_trace_stack(buffer, irq_flags, 6, pc);
+		trace_wake_up();
 	}
 
  out_unlock:
-- 
1.7.1.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] tracing: wake up tasks reading trace_pipe on write ..., Marcin Slusarz, (Tue Jul 27, 3:44 pm)
Re: [PATCH] tracing: wake up tasks reading trace_pipe on w ..., Frederic Weisbecker, (Fri Aug 6, 1:55 pm)
Re: [PATCH] tracing: wake up tasks reading trace_pipe on w ..., Frederic Weisbecker, (Fri Aug 6, 2:50 pm)