[Patch -tip 3/3] Tracing/ftrace: Don't consume entries unhandledby mmiotrace

From: Frédéric Weisbecker
Date: Thu Sep 25 2008 - 07:23:24 EST


When mmiotrace can't handle an entry output, it returns 1.
It should return 0 to relay on other output functions.

Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
---
diff --git a/kernel/trace/trace_mmiotrace.c b/kernel/trace/trace_mmiotrace.c
index a108c32..6fe1315 100644
--- a/kernel/trace/trace_mmiotrace.c
+++ b/kernel/trace/trace_mmiotrace.c
@@ -277,7 +277,8 @@ static int mmio_print_line(struct trace_iterator *iter)
case TRACE_PRINT:
return mmio_print_mark(iter);
default:
- return 1; /* ignore unknown entries */
+ return 0; /* ignore unknown entries whithout consuming */
}
}