Re: [RFC PATCH 1/3] Unified trace buffer

From: Steven Rostedt
Date: Thu Sep 25 2008 - 12:33:12 EST



On Thu, 25 Sep 2008, Mathieu Desnoyers wrote:
> The problem with sched_clock is that it gives a 1 HZ timestamp accuracy
> for events happening across different CPUs. Within this 1 HZ range, it
> uses the TSC and clip when it reaches a max. Good enough for scheduler
> or for tracing events on a single CPU, but I think it is not exactly
> what we need to reorder events happening across CPUs.
>


Hmm,

sched_clock gives ns accuracy unless the tsc is disabled. And in that
case, we don't have any CPU clock :-/


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