]> bbs.cooldavid.org Git - net-next-2.6.git/commit
tracing/ftrace: add the printk-msg-only option
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 13 Dec 2008 19:18:13 +0000 (20:18 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 23:26:36 +0000 (00:26 +0100)
commit66896a85cf2890b6bbbc4c9ccdcd296600ffbf89
treead6b0a4df65a59280163f5b8ab0b92b2fe54c283
parent2c2d7329d8afa9efa3ec24e19a53e7be9d14f242
tracing/ftrace: add the printk-msg-only option

Impact: display ftrace_printk messages "as is"

By default, ftrace_printk() messages find their output with some other
informations like pid, caller, ...
Sometimes a developer just want to have the ftrace_printk left "as is", without
other information.

This is done by providing a default-off option called printk-msg-only.
To enable it, just do `echo printk-msg-only > /debugfs/tracing/trace_options`

Before the patch:

           <...>-2739  [000]   145.692153: __might_sleep: I'm an ftrace_printk msg in __might_sleep
           <...>-2739  [000]   145.692155: __might_sleep: I'm another ftrace_printk msg in __might_sleep

After the patch and the printk-msg-only option enabled:

I'm an ftrace_printk msg in __might_sleep
I'm another ftrace_printk msg in __might_sleep

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c
kernel/trace/trace.h