Re: [PATCH v7 1/2]: perf util: map data buffer for preserving collected data

2018-09-06 Thread Alexey Budankov
On 06.09.2018 14:04, Jiri Olsa wrote: > On Wed, Sep 05, 2018 at 10:19:56AM +0300, Alexey Budankov wrote: > > SNIP > >> @@ -166,6 +174,7 @@ void perf_mmap__munmap(struct perf_mmap *map) >> >> int perf_mmap__mmap(struct perf_mmap *map, struct mmap_params *mp, int fd) >> { >> +int i; >>

Re: [PATCH v7 1/2]: perf util: map data buffer for preserving collected data

2018-09-06 Thread Alexey Budankov
On 06.09.2018 14:04, Jiri Olsa wrote: > On Wed, Sep 05, 2018 at 10:19:56AM +0300, Alexey Budankov wrote: >> >> The map->data buffers are used to preserve map->base profiling data >> for writing to disk. AIO map->cblocks are used to queue corresponding >> map->data buffers for asynchronous writ

Re: [PATCH v7 1/2]: perf util: map data buffer for preserving collected data

2018-09-06 Thread Jiri Olsa
On Wed, Sep 05, 2018 at 10:19:56AM +0300, Alexey Budankov wrote: > > The map->data buffers are used to preserve map->base profiling data > for writing to disk. AIO map->cblocks are used to queue corresponding > map->data buffers for asynchronous writing. map->cblocks objects are > located in th

Re: [PATCH v7 1/2]: perf util: map data buffer for preserving collected data

2018-09-06 Thread Jiri Olsa
On Wed, Sep 05, 2018 at 10:19:56AM +0300, Alexey Budankov wrote: SNIP > @@ -166,6 +174,7 @@ void perf_mmap__munmap(struct perf_mmap *map) > > int perf_mmap__mmap(struct perf_mmap *map, struct mmap_params *mp, int fd) > { > + int i; > /* >* The last one will be done at perf_m

[PATCH v7 1/2]: perf util: map data buffer for preserving collected data

2018-09-05 Thread Alexey Budankov
The map->data buffers are used to preserve map->base profiling data for writing to disk. AIO map->cblocks are used to queue corresponding map->data buffers for asynchronous writing. map->cblocks objects are located in the last page of every map->data buffer. Signed-off-by: Alexey Budankov --