Re: [PATCH 32/33] perf, tools: Default to cpu// for events v2

2012-10-27 Thread Jiri Olsa
On Fri, Oct 26, 2012 at 01:30:14PM -0700, Andi Kleen wrote: > From: Andi Kleen > > When an event fails to parse and it's not in a new style format, > try to parse it again as a cpu event. > > This allows to use sysfs exported events directly without //, so I can use > > perf record -e

Re: [PATCH 32/33] perf, tools: Default to cpu// for events v2

2012-10-27 Thread Jiri Olsa
On Fri, Oct 26, 2012 at 01:30:14PM -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com When an event fails to parse and it's not in a new style format, try to parse it again as a cpu event. This allows to use sysfs exported events directly without //, so I can use perf record

[PATCH 32/33] perf, tools: Default to cpu// for events v2

2012-10-26 Thread Andi Kleen
From: Andi Kleen When an event fails to parse and it's not in a new style format, try to parse it again as a cpu event. This allows to use sysfs exported events directly without //, so I can use perf record -e tx-aborts ... instead of perf record -e cpu/tx-aborts/ v2: Handle multiple events

[PATCH 32/33] perf, tools: Default to cpu// for events v2

2012-10-26 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com When an event fails to parse and it's not in a new style format, try to parse it again as a cpu event. This allows to use sysfs exported events directly without //, so I can use perf record -e tx-aborts ... instead of perf record -e cpu/tx-aborts/ v2: