Re: [PATCH 1/7] perf: Enable function tracing for perf core

From: Steven Rostedt
Date: Mon Sep 10 2012 - 10:43:14 EST


On Sat, 2012-09-08 at 15:06 +0200, Frederic Weisbecker wrote:
> On Sat, Sep 08, 2012 at 07:55:16AM -0400, Steven Rostedt wrote:
> > According to Steven R. there is no reason left to not support
> > function tracing for the perf core. This makes it easier to debug
> > perf.
> >
> > Don't remove -pg for the x86 and generic perf core.
>
> Actually, perf can use function tracing. A good reason for disabling
> function tracing in perf is to avoid the overhead of recursive function
> tracing, even though we are protected against tracing re-entrancy, this
> still result in some overhead.

Yes, but perf shouldn't do a full function trace. It should be filtering
on what functions it wants to trace, and if it needs to, we can easily
make it not trace its own functions.

I've been thinking about adding function tracing into the trace
directory. As there's been several times I wanted it. The only files
that really shouldn't be traced in there is ftrace.c, trace_function.c
and trace_function_graph.c. The rest I believe is fair game.

-- 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 http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/