Re: [PATCH] tracing: add trace console

Peter Zijlstra
2011-11-16T14:26:08Z

On Wed, 2011-11-16 at 09:15 -0500, Steven Rostedt wrote:
> I'm good with this. Anyone have any issues with it?
>
> -- Steve
>
> >
> > Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> > ---
> > kernel/trace/Kconfig | 13 ++++++++++
> > kernel/trace/Makefile | 2 +
> > kernel/trace/trace-console.c | 55 +++++++++++++++++++++++++++++++++++++++++++
> > 3 files changed, 70 insertions(+)
> >
> > --- a/kernel/trace/Kconfig 2011-11-16 11:11:27.000000000 +0100
> > +++ b/kernel/trace/Kconfig 2011-11-16 11:11:35.000000000 +0100
> > @@ -368,6 +368,19 @@ config BLK_DEV_IO_TRACE
> >
> > If unsure, say N.
> >
> > +config TRACE_CONSOLE
> > + tristate "Support for a tracing console"
> > + help
> > + Say M (or Y if you must, but this is not recommended)

Why not?

> to be able
> > + to get a tracing console that puts every kernel message into the
> > + tracing infrastructure using trace_printk(). This is useful to
> > + correlate (existing) printk debugging with tracing. When using it
> > + remember to set the console level, e.g. with "dmesg -n8".