Re: [PATCH v7 08/12] perf record: implement compression for AIO trace streaming

2019-03-13 Thread Alexey Budankov
On 13.03.2019 17:36, Jiri Olsa wrote: > On Tue, Mar 12, 2019 at 08:30:13AM +0300, Alexey Budankov wrote: > > SNIP > >> - >> -md->prev = head; >> -perf_mmap__consume(md); >> - >> -rc = push(to, >aio.cblocks[idx], md->aio.data[idx], size0 + size, >> *off); >> -if (!rc) { >> -

Re: [PATCH v7 08/12] perf record: implement compression for AIO trace streaming

2019-03-13 Thread Jiri Olsa
On Tue, Mar 12, 2019 at 08:30:13AM +0300, Alexey Budankov wrote: > > Compression is implemented using the functions from zstd.c. As the memory > to operate on the compression uses mmap->aio.data[] buffers. If Zstd > streaming compression API fails for some reason the data to be compressed > are

Re: [PATCH v7 08/12] perf record: implement compression for AIO trace streaming

2019-03-13 Thread Jiri Olsa
On Tue, Mar 12, 2019 at 08:30:13AM +0300, Alexey Budankov wrote: SNIP > - > - md->prev = head; > - perf_mmap__consume(md); > - > - rc = push(to, >aio.cblocks[idx], md->aio.data[idx], size0 + size, > *off); > - if (!rc) { > - *off += size0 + size; > - } else { > -

[PATCH v7 08/12] perf record: implement compression for AIO trace streaming

2019-03-11 Thread Alexey Budankov
Compression is implemented using the functions from zstd.c. As the memory to operate on the compression uses mmap->aio.data[] buffers. If Zstd streaming compression API fails for some reason the data to be compressed are just copied into the memory buffers using plain memcpy(). Compressed trace