Re: [PATCH 08/13 v2] ftrace: do not trace init sections

From: Steven Rostedt
Date: Thu Oct 23 2008 - 12:25:53 EST

On Thu, 23 Oct 2008, Jan Kiszka wrote:
> >From my POV - I'm using mcount tracing for a few years now -, the thing
> about this is gaining a complete overview of what happens at function
> level, which code paths were taken (at that level). Each bit of
> information you (have to) drop can harm here, even more if they come in
> larger chunks like in this case.

Then you should be happy :-)

I removed the notrace to those sections. Although there is already a
notrace on the __init. We probably should remove it. The
does not add tracing to these functions. If you want tracing of these
functions, you will need to use the static ftrace tracer (!DYNAMIC_FTRACE)

> I don't know if this feature is already considered for / part of
> mainline, but oops backtraces based on mcount instrumentation used to be
> quite helpful for me to understand the wider context of several faults.
> The more you have to mask out of this picture, the harder it gets to
> match the trace to your model of the kernel activities. At least you
> have to know more in advance about the limitation of the tracer...

The ftrace buffer can be dumped out on oops. I'm not sure if it is always
on. If it is, I need to make it default off and add a command line and
sysctl to turn it on. Otherwise, we will have people complaining about the
extra output to the console on oops.

-- Steve

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at