Skip to contentSkip to conversation

Tracing/ftrace: Don't consume unhandled entries by boot tracer

PATCH Applied Frédéric Weisbecker 2 participants 2 messages Sep 25, 2008 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 Tracing/ftrace: Don't consume unhandled entries by boot tracer

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

--

kernel/trace/trace_boot.c +1 -1
index c65ef8f..d5c9e2e 100644
@@ -47,7 +47,7 @@ static void boot_trace_ctrl_update(struct trace_array *tr)
 
 static int initcall_print_line(struct trace_iterator *iter)
 {
-	int ret = 1;
+	int ret = 0;
 	struct trace_entry *entry = iter->ent;
 	struct boot_trace *it = &entry->field.initcall;
 	struct trace_seq *s = &iter->seq;
#1 lore raw
Quoted 4 lines · Frédéric Weisbecker

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

applied to tip/tracing/fastboot, thanks Frédéric!

Ingo