Re: [PATCH v9 2/3]: perf record: enable asynchronous trace writing

From: Alexey Budankov
Date: Fri Oct 05 2018 - 11:54:55 EST


Hi,
On 05.10.2018 14:50, Alexey Budankov wrote:<SNIP>
>
> According to docs [1] ftruncate() does not advance file pos
> which is essential here.
>

Ideally, the both lseek() syscalls in every loop iteration can be
replaced by the only two syscalls just before and after the loop and
advancing *in-flight* off file pos value at perf_mmap__aio_push()
after every successful record__aio_pushfn().

Thanks,
Alexey