lkml.org 
[lkml]   [2008]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Unified tracing buffer


    On Fri, 19 Sep 2008, Martin Bligh wrote:

    > >> Event ids are 16 bit, dynamically allocated.
    > >
    > > What are these (like)?
    >
    > u16
    >
    > Sorry, probably lots of implicit assumptions in there that I forgot to explain
    >
    > > Arch-specific "word"?
    > > or some fixed-size-for-all-systems (so that trace buffers can be
    > > shared/used on other systems?) Preferably the latter.
    >
    > Mmmm. I don't see anything wrong with making it just 8 byte aligned, personally.
    > Steven - this was your thing?

    I'm fine with 8 byte aligned for all.

    >
    > >> Variable record length, header will start with length record.
    > >> Timestamps in fixed timebase, monotonically increasing (across all CPUs)
    > >
    > > what timestamp resolution?
    >
    > ns is probably sufficient for output, but may need to be higher
    > internally to get
    > correct ordering of events across CPUs. So, as long as we record this in
    > the buffer header, the internal resolution shouldn't be critical. The text
    > print output ... I'd say ns? We can put it relative to wall time in there,
    > as long as we record it in the buffer header at trace start. I guess we should
    > document the buffer header ;-)
    >

    ftrace has two outputs. One is ns from start of boot, the other is ns from
    start of trace. Not sure we need to make wall time in there, unless we add
    it in the trace header (as you stated). Probably best for Version #2.

    -- Steve



    \
     
     \ /
      Last update: 2008-09-20 10:29    [W:5.220 / U:0.348 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site