Re: [PATCH 0/5] [RFC] binary reading of ftrace ring buffers

From: Steven Rostedt
Date: Wed Mar 04 2009 - 09:52:01 EST


On Wed, 4 Mar 2009, Ingo Molnar wrote:
> >
> > The splice C code:
> > http://www.kernel.org/pub/linux/kernel/people/rostedt/splice.c
> >
> > The perl script to parse:
> > http://www.kernel.org/pub/linux/kernel/people/rostedt/rb-read.pl
> >
> > And yes I know, they are both ugly :-p
>
> Any chance of merging them into a single perl script? I.e. the
> perl script would embedd the .c code and build it on every
> invocation (into /tmp), so that one can do single-tool tracing
> with no immediate binary components. Such self-sufficiency is
> very handy when probing systems in a minimally invasive way.
>
> And we could also have twice the ugliness for the same price.
>

Gag, that would really be ugly code ;-)

If anything I might actually want to break up the perl script. This was
just made to be an example. Any serious user would most likely write their
own user apps. This was more of a proof of concept.

I could clean up that code, and then have one big file that does all the
ugliness for those that just want to tinker with it. But that is low on
the totem pole ;-)

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