[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1273833586.1626.244.camel@laptop>
Date: Fri, 14 May 2010 12:39:46 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: rostedt@...dmis.org
Cc: Ian Munsie <imunsie@....ibm.com>, linux-kernel@...r.kernel.org,
Paul Mackerras <paulus@...ba.org>, Ingo Molnar <mingo@...e.hu>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Tom Zanussi <tzanussi@...il.com>
Subject: Re: [PATCH 2/7] perf trace: Correctly handle arrays
On Thu, 2010-05-13 at 12:32 -0400, Steven Rostedt wrote:
>
> -- Steve
>
> > + else
> > + field->elementsize = field->size;
> > +
> > *fields = field;
> > fields = &field->next;
> >
> > @@ -2101,7 +2109,8 @@ static unsigned long long eval_num_arg(void *data, int size,
> > }
> > right = eval_num_arg(data, size, event, arg->op.right);
> > val = read_size(data + larg->field.field->offset +
> > - right * long_size, long_size);
> > + right * larg->field.field->elementsize,
> > + larg->field.field->elementsize);
> > break;
> > }
> > default_op:
> > diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h
> > index 406d452..cc58a19 100644
> > --- a/tools/perf/util/trace-event.h
> > +++ b/tools/perf/util/trace-event.h
> > @@ -40,6 +40,8 @@ struct format_field {
> > char *name;
> > int offset;
> > int size;
> > + unsigned int arraylen;
> > + unsigned int elementsize;
> > unsigned long flags;
> > };
> >
What's with this new fad of not trimming emails?
--
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