Re: [RFC PATCH 14/17] perf: Add ioctl(REATTACH) for detached events

2017-10-03 Thread Peter Zijlstra
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

[RFC PATCH 14/17] perf: Add ioctl(REATTACH) for detached events

2017-09-05 Thread Alexander Shishkin
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. Signed-off-by: Alexander Shishkin --- include/uapi/linux/perf_event.h | 1 + kernel/events/cor