Messages in this thread | | | Date | Wed, 4 Mar 2009 09:51:34 -0500 (EST) | From | Steven Rostedt <> | Subject | Re: [PATCH 0/5] [RFC] binary reading of ftrace ring buffers |
| |
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
| |