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

    On Thu, 25 Sep 2008, Jeremy Fitzhardinge wrote:
    >
    > No, as I said: "You just need to emit the current
    > tsc+frequency+wallclock time before you emit any more delta records
    > after the frequency change."
    >
    > When an event which affects the tsc occurs, like a frequency change or
    > pause, set a flag. When you're next about to emit a delta, check the
    > flag and emit new timing parameters (or instead).

    This is where I get confused. When do we add this to the trace buffer?
    Every record (currently) records the delta time from the last event.
    If a frequency changes, do we need to record the tuple at that moment?

    If so, we have an issue. We can be in the middle of tracing the GTOD
    and we can not recurse back into the GTOD for fear of deadlocking on
    the GTOD spinlocks.

    Do we add this data to the buffers when it happens? This means every
    allocated ring buffer (and yes you can have more than one), will need to
    register a call back so that it can record this information into the
    buffer.

    Or am I just not getting it?

    -- Steve



    \
     
     \ /
      Last update: 2008-09-26 03:31    [W:0.025 / U:30.444 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site