[PATCH v9 1/3]: perf util: map data buffer for preserving collected data

2018-10-05 Thread Alexey Budankov
The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov --- Changes in v10: - moved specific code to perf_mmap__aio_mmap(), perf_mmap__aio_mun

Re: [PATCH v9 1/3]: perf util: map data buffer for preserving collected data

2018-10-05 Thread Alexey Budankov
Hi, On 05.10.2018 9:23, Namhyung Kim wrote: > On Wed, Oct 03, 2018 at 07:01:26PM +0300, Alexey Budankov wrote: >> +#ifdef HAVE_AIO_SUPPORT >> +map->nr_cblocks = mp->nr_cblocks; >> +if (map->nr_cblocks) { >> +map->data = malloc(perf_mmap__mmap_len(map)); >> +if (!m

Re: [PATCH v9 1/3]: perf util: map data buffer for preserving collected data

2018-10-05 Thread Alexey Budankov
Hi, On 05.10.2018 9:23, Namhyung Kim wrote: > On Wed, Oct 03, 2018 at 07:01:26PM +0300, Alexey Budankov wrote: >> >> The map->data buffer is used to preserve map->base profiling data >> for writing to disk. AIO map->cblock is used to queue corresponding >> map->data buffer for asynchronous writin

Re: [PATCH v9 1/3]: perf util: map data buffer for preserving collected data

2018-10-04 Thread Namhyung Kim
On Wed, Oct 03, 2018 at 07:01:26PM +0300, Alexey Budankov wrote: > > The map->data buffer is used to preserve map->base profiling data > for writing to disk. AIO map->cblock is used to queue corresponding > map->data buffer for asynchronous writing. > > Signed-off-by: Alexey Budankov > --- > C

[PATCH v9 1/3]: perf util: map data buffer for preserving collected data

2018-10-03 Thread Alexey Budankov
The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov --- Changes in v9: - implemented NO_AIO and HAVE_AIO_SUPPORT defines to cover cases