Re: [PATCH 3/3] perf, tool: Add new event group management

From: Arnaldo Carvalho de Melo
Date: Tue Mar 20 2012 - 18:19:07 EST


Em Tue, Mar 20, 2012 at 09:46:25PM +0100, Ingo Molnar escreveu:
>
> * Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:
>
> > Now the disadvantage is that {} needs quotes on bash, [...]
>
> Not on my version of Bash:
>
> earth5:~> perf stat {}
> {}: No such file or directory
> Terminated
> earth5:~> perf stat true {}
>
> Performance counter stats for 'true {}':
>
> it's passed in literally, AFAICS.

I like it, but...

[acme@felicio ~]$ perf stat -e {cycles,cache-misses} ls
cache-misses: No such file or directory
Terminated
[acme@felicio ~]$ perf stat -e \{cycles,cache-misses\} ls
invalid or unsupported event: '{cycles,cache-misses}'
Run 'perf list' for a list of valid events

but:

[acme@felicio ~]$ perf stat -e [cycles,instructions] ls
perf stat -e [cycles,instructions] ls
invalid or unsupported event: '[cycles,instructions]'
Run 'perf list' for a list of valid events

[acme@felicio ~]$ perf stat -e [cycles,cache-misses]:u ls
invalid or unsupported event: '[cycles,cache-misses]:u'
Run 'perf list' for a list of valid events

And:

[acme@felicio ~]$ perf stat -e (cycles,cache-misses) ls
bash: syntax error near unexpected token `('
[acme@felicio ~]$

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