Re: [RFC PATCH 06/17] perf: Add buffers to the detached events
From: Peter Zijlstra
Date: Tue Oct 03 2017 - 10:36:16 EST
On Tue, Sep 05, 2017 at 04:30:15PM +0300, Alexander Shishkin wrote:
> @@ -415,6 +416,8 @@ struct perf_event_attr {
> __u32 aux_watermark;
> __u16 sample_max_stack;
> __u16 __reserved_2; /* align to __u64 */
> + __u32 detached_nr_pages;
> + __u32 detached_aux_nr_pages;
> };
Not sure the naming makes sense; I don't see why this would be limited
to detached events. That is, what would stop someone from pre-allocating
buffers on 'regular' events if they wanted to?