Re: [PATCH 10/12] add perf counter support

Frederic Weisbecker
2009-08-11T12:25:14Z

On Tue, Aug 11, 2009 at 02:17:11PM +0200, Ingo Molnar wrote:
>
> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
> > On Mon, Aug 10, 2009 at 04:53:02PM -0400, Jason Baron wrote:
> > > Make 'perf stat -e syscalls:sys_enter_blah' work with syscall style tracepoints.
> >
> >
> > It would be nice to also be able to type:
> >
> > perf stat -e syscalls:blah
> >
> > and then having both enter/exit counters.
>
> Plus wildcard/regex support would be nice as well in the listing of
> events. That way one could do a shortcut of:
>
> perf stat -e syscalls:*
>
> to trace all syscalls. Or:
>
> perf stat -e syscalls:*read*
>
> to see all the read variants - etc.
>
> Ingo

Plus filters in syscalls field. Because arguments are wrapped and post-processed,
they are not treated as usual fields.
I must confess this part is not trivial though.