Re: perf events over (net) console?

From: Harald Gustafsson
Date: Thu Sep 09 2010 - 13:42:50 EST


2010/9/9 Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxxxx>:
> Isn't this what Tom Zanussi's live mode, that we have already special
> casing 'perf record -' does?

> Harald, can you please take a look at the comment for these commits:
>
> commit 454c407ec17a0c63e4023ac0877d687945a7df4a
> Author: Tom Zanussi <tzanussi@xxxxxxxxx>
> Date:   Sat May 1 01:41:20 2010 -0500
>
>    perf: add perf-inject builtin
>
> commit 529870e37473a9fc609078f03cc5b4148cf06a87
> Author: Tom Zanussi <tzanussi@xxxxxxxxx>
> Date:   Thu Apr 1 23:59:16 2010 -0500
>
>    perf record: Introduce special handling for pipe output
>
> commit 8dc58101f2c838355d44402aa77646649d10dbec
> Author: Tom Zanussi <tzanussi@xxxxxxxxx>
> Date:   Thu Apr 1 23:59:15 2010 -0500
>
>    perf: Add pipe-specific header read/write and event processing code
>
> Using live mode you can stream to a perf.data for later analisys or do
> it live, piping it to trace scripts, etc.

I took a quick look and it seems promising, thanks for the info, I'll
do some tests tomorrow and get back with some results.

/Harald

> Doing it using splice, talking directly to an in kernel mini-server, etc
> are all optimizations that we should think about, but if you can try
> using the live mode and see if it is ok, that would be good.
>
> A mini binary with just record can come in handy if you like and should
> be rather easy to build, please let me know if you think it is a good
> idea and if you need help, lemme know.
>
> - Arnaldo
>
--
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/