Re: [RFC 1/2] perf: add data_{offset,size} to user_page

2014-05-15 Thread Robert Richter
On 15.05.14 18:08:29, Alexander Shishkin wrote: > @@ -488,9 +488,14 @@ struct perf_event_mmap_page { >* In this case the kernel will not over-write unread data. >* >* See perf_output_put_handle() for the data ordering. > + * > + * data_{offset,size} indicate the lo

[RFC 1/2] perf: add data_{offset,size} to user_page

2014-05-15 Thread Alexander Shishkin
Currently, the actual perf ring buffer is one page into the mmap area, following the user page and the userspace follows this convention. This patch adds data_{offset,size} fields to user_page that can be used by userspace instead for locating perf data in the mmap area. Right now, it is made to f