[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120320221845.GB21163@infradead.org>
Date: Tue, 20 Mar 2012 19:18:45 -0300
From: Arnaldo Carvalho de Melo <acme@...hat.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Jiri Olsa <jolsa@...hat.com>, mingo@...e.hu, paulus@...ba.org,
cjashfor@...ux.vnet.ibm.com, fweisbec@...il.com,
linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>
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@...llo.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@...icio ~]$ perf stat -e {cycles,cache-misses} ls
cache-misses: No such file or directory
Terminated
[acme@...icio ~]$ 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@...icio ~]$ 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@...icio ~]$ 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@...icio ~]$ perf stat -e (cycles,cache-misses) ls
bash: syntax error near unexpected token `('
[acme@...icio ~]$
- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists