lkml.org 
[lkml]   [2008]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 1/3] Unified trace buffer
    Hi -

    On Wed, Sep 24, 2008 at 01:51:55PM -0700, Martin Bligh wrote:
    > [...]
    > One thing we said we could do is compile the "decompaction" tools
    > along with the kernel, in the kernel tree. Then if we change the in-kernel
    > format, you don't break all the userspace tools.

    If the common tracing idea still includes kernel-supplied ASCII as an
    alternative to binary (so that one could grep some debugfs file), then
    it would be nice to have some common code for decoding the trace
    records offline.

    If we can associate a simple specific struct type ("struct
    ftrace_event") with each trace id type in an object-code-resident
    table, we could automate some of this. The kernel build process could
    sniff dwarf data (a la acme's struct-layout-printing dwarves) at or
    before modpost time to generate a snippet of C code for each such
    event struct. That C code could be the generic ASCII-printing
    callback for use by debugfs. A variant could be a userspace-usable
    version. Given the same id-to-struct-name mapping, Sytemtap could
    expose event records field by field, by name.


    - FChE


    \
     
     \ /
      Last update: 2008-09-24 23:31    [W:4.226 / U:0.276 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site