lkml.org 
[lkml]   [2012]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] perf: Add persistent event facilities
From
Date
On Fri, 2012-05-18 at 14:55 +0200, Borislav Petkov wrote:
> It is an interesting question how we handle that RO/RW thing?

RO buffers overwrite, RW buffers loose events.

We could allow both for persistent under the constraints:

VM_SHARED - must imply !VM_WRITE since multiple people writing to the
control page will get 'interesting' very fast.

!VM_SHARED - must fail mmap() of the debugfs file if there's already
an existing user.

Note that even RW buffers only allows writes to the control page, a
write to the actual data itself will generate a fault.


\
 
 \ /
  Last update: 2012-05-18 16:21    [W:0.106 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site