Re: [PATCH][GIT PULL] tracing: add function profiler

From: Ingo Molnar
Date: Sat Mar 21 2009 - 12:27:00 EST



* Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> > If you want exact function count profiling we could try to do
> > something perf counter based, eg. stick a software counter in
> > the mcount thingy.
>
> I'd like to get the function graph version working, in order to
> calculate the times spent in each funtion, then I can see how we
> can (if possible) convert it over to perf counters. :-/

the perf counters angle is definitely worth pursuing (for
completeness of the scheme Peter is working on), but please lets not
throw the baby out with the bath water: in-kernel histogram
collection has real value.

It's _much_ faster than any user-space counter-part, especially for
such things as branch tracing or function tracing.

Ingo
--
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/