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

From: Ingo Oeser
Date: Wed Mar 04 2009 - 17:47:20 EST


Hi Steven,

On Wednesday 04 March 2009, Steven Rostedt wrote:
> On Wed, 4 Mar 2009, Ingo Molnar wrote:
> > 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 you want really ugly code, you could do the SYS_splice in perl
via syscall. Just look it up via "perldoc -f syscall" and play around :-)

Best Regards

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