lkml.org 
[lkml]   [2012]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2012-03-20 23:21    [W:0.144 / U:18.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site