Re: [PATCH 31/32] perf, tools: Default to cpu// for events v3

2012-11-28 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 28, 2012 at 08:04:36PM +0100, Andi Kleen escreveu: > > > +static void str_append(char **s, int *len, const char *a) > > > +{ > > > + int olen = *s ? strlen(*s) : 0; > > > + int nlen = olen + strlen(a) + 1; > > > + if (*len < nlen) { > > > + *len = *len * 2; > > > + if (*

Re: [PATCH 31/32] perf, tools: Default to cpu// for events v3

2012-11-28 Thread Andi Kleen
> > +static void str_append(char **s, int *len, const char *a) > > +{ > > + int olen = *s ? strlen(*s) : 0; > > + int nlen = olen + strlen(a) + 1; > > + if (*len < nlen) { > > + *len = *len * 2; > > + if (*len < nlen) > > + *len = nlen; > > + *s

Re: [PATCH 31/32] perf, tools: Default to cpu// for events v3

2012-11-28 Thread Jiri Olsa
On Fri, Nov 09, 2012 at 05:27:47PM -0800, 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 tx-aborts

[PATCH 31/32] perf, tools: Default to cpu// for events v3

2012-11-09 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 31/32] perf, tools: Default to cpu// for events v3

2012-10-30 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