lkml.org 
[lkml]   [2008]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 1/3] Unified trace buffer
* Steven Rostedt (rostedt@goodmis.org) wrote:
>
> 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 :-/
>

Even on architectures with non-synchronized TSCs ?

Mathieu

>
> -- Steve
>

--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


\
 
 \ /
  Last update: 2008-09-25 19:25    [W:1.047 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site