lkml.org 
[lkml]   [2018]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v9 2/3]: perf record: enable asynchronous trace writing
From
Date
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

\
 
 \ /
  Last update: 2018-10-05 17:55    [W:0.159 / U:1.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site