lkml.org 
[lkml]   [2017]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 14/17] perf: Add ioctl(REATTACH) for detached events
On Tue, Sep 05, 2017 at 04:30:23PM +0300, Alexander Shishkin wrote:
> This adds an ioctl command to demote a detached event to a 'normal' one
> that gets destroyed when its file descriptor is closed. It can still be
> used to mmap the buffers, but not very useful otherwise.

why not simply use the fd obtained from open() on our special
filesystem?

If you open and then unlink, you loose the 'detached' state and the
filedesc is the only life-line.

\
 
 \ /
  Last update: 2017-10-03 16:50    [W:0.136 / U:9.104 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site