Re: [PATCH v2 3/4] Transform mmap and other related structures to list with new xyarray

2013-02-28 Thread David Ahern
On 2/26/13 2:41 AM, chenggang wrote: diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 774c907..13112c6 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -31,6 +31,8 @@ #include #include +#define MMAP(e, y) (*(struct perf_mmap *)xyarra

[PATCH v2 3/4] Transform mmap and other related structures to list with new xyarray

2013-02-26 Thread chenggang
From: chenggang evlist->mmap, evsel->id, evsel->sample_id are arrays. They cannot be expended or shrinked easily for the forked and exited threads while we get the fork and exit events. We transfromed them to linked list with the new xyarray. xyarray is a 2-dimensional structure. The row is a arr

[PATCH v2 3/4] Transform mmap and other related structures to list with new xyarray

2013-02-26 Thread chenggang
From: chenggang evlist->mmap, evsel->id, evsel->sample_id are arrays. They cannot be expended or shrinked easily for the forked and exited threads while we get the fork and exit events. We transfromed them to linked list with the new xyarray. xyarray is a 2-dimensional structure. The row is a arr