Messages in this thread | | | Date | Tue, 20 Mar 2012 19:18:45 -0300 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH 3/3] perf, tool: Add new event group management |
| |
Em Tue, Mar 20, 2012 at 09:46:25PM +0100, Ingo Molnar escreveu: > > * Peter Zijlstra <a.p.zijlstra@chello.nl> 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
| |