Re: [PATCH 2/2] tracing/function-graph-tracer: use the morelightweight local clock

From: Ingo Molnar
Date: Thu Mar 05 2009 - 06:38:52 EST



* Frederic Weisbecker <fweisbec@xxxxxxxxx> wrote:

> > There will be one problem though: function trace elapsed
> > time measurements across idle. Those are not correctly
> > measured by the local clock.
>
> Oh, why? If I'm not wrong it uses sched_clock() which uses tsc
> on x86. And this register always goes forward at the same
> rate. Unless some Cpu decrease their frequency while beeing
> idle for some time and then become unreliable?

TSC stops in idle on many CPUs.

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/