Re: [PATCH V2 -tip 3/4] Tracing/ftrace: Adapt mmiotrace to the new type of print_line

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Wednesday, October 1, 2008 - 1:06 am

* Frederic Weisbecker <fweisbec@gmail.com> wrote:


applied the commit below to tip/tracing/ring-buffer, thanks Frederic! 
(had to do manual merging due to flux in that function due to the 
locking changes - please double-check that i got it right.)

btw., we still have the mmiotrace type casting buglet unfixed:


	Ingo

------------>
From a2e221682b91ff83dc8a5e7fbb60a9d87a4e83f2 Mon Sep 17 00:00:00 2001
From: Frederic Weisbecker <fweisbec@gmail.com>
Date: Tue, 30 Sep 2008 18:13:45 +0200
Subject: [PATCH] tracing/ftrace: Adapt mmiotrace to the new type of print_line, fix

Correct the value's type of trace_empty function

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/trace/trace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index b542f88..c163406 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1750,7 +1750,7 @@ static int trace_empty(struct trace_iterator *iter)
 		}
 	}
 
-	return TRACE_TYPE_HANDLED;
+	return 1;
 }
 
 static enum print_line_t print_trace_line(struct trace_iterator *iter)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH V2 -tip 3/4] Tracing/ftrace: Adapt mmiotrace to the ..., Frederic Weisbecker, (Mon Sep 29, 11:27 am)
Re: [PATCH V2 -tip 3/4] Tracing/ftrace: Adapt mmiotrace to ..., Frédéric Weisbecker, (Tue Sep 30, 5:39 am)
Re: [PATCH V2 -tip 3/4] Tracing/ftrace: Adapt mmiotrace to ..., Frédéric Weisbecker, (Tue Sep 30, 6:25 am)
Re: [PATCH V2 -tip 3/4] Tracing/ftrace: Adapt mmiotrace to ..., Frederic Weisbecker, (Tue Sep 30, 9:13 am)
Re: [PATCH V2 -tip 3/4] Tracing/ftrace: Adapt mmiotrace to ..., Frédéric Weisbecker, (Tue Sep 30, 9:16 am)
Re: [PATCH V2 -tip 3/4] Tracing/ftrace: Adapt mmiotrace to ..., Ingo Molnar, (Wed Oct 1, 1:06 am)