Messages in this thread | | | Subject | Re: [PATCH v9 2/3]: perf record: enable asynchronous trace writing | From | Alexey Budankov <> | Date | Fri, 5 Oct 2018 18:53:17 +0300 |
| |
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
| |