[Patch -tip 1/3] Tracing/ftrace: Relay unhandled entry output

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frédéric Weisbecker
Date: Thursday, September 25, 2008 - 5:19 am

Hi!

I tried to figure out the origin of the bug reported by Pekka Paalanen
about the broken pipe:
http://kerneltrap.org/mailarchive/linux-kernel/2008/9/15/3305224

When I add a trace_mark with the boot tracer, I had this same problem
but this time it was easy to reproduce.

When it calls a tracer's print_line callback, the print_trace_line function 
in trace.c returns whithout verifying if it could handle the entry properly.
And actually the seq could be empty.

For example the boot_tracer don't handle TRACE_PRINT. Nevertheless it
wants them to be printed as a default way.

So print_trace_line function should relay on the other functions which could handle
an output if one of them fail.

Reported-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
---
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Patch -tip 1/3] Tracing/ftrace: Relay unhandled entry output, Frédéric Weisbecker, (Thu Sep 25, 5:19 am)
Re: [Patch -tip 1/3] Tracing/ftrace: Relay unhandled entry ..., Frédéric Weisbecker, (Thu Sep 25, 7:56 am)
Re: [Patch -tip 1/3] Tracing/ftrace: Relay unhandled entry ..., Frédéric Weisbecker, (Thu Sep 25, 8:33 am)
Re: [Patch -tip 1/3] Tracing/ftrace: Relay unhandled entry ..., Frédéric Weisbecker, (Thu Sep 25, 8:56 am)
Re: [Patch -tip 1/3] Tracing/ftrace: Relay unhandled entry ..., Frédéric Weisbecker, (Thu Sep 25, 9:40 am)
Re: [Patch -tip 1/3] Tracing/ftrace: Relay unhandled entry ..., Frédéric Weisbecker, (Mon Sep 29, 2:29 am)