Re: [RFC v2 6/7] perf: add api for pmus to write to AUX space

2014-06-25 Thread Peter Zijlstra
On Wed, Jun 25, 2014 at 02:24:51PM +0300, Alexander Shishkin wrote: > Peter Zijlstra writes: > > > On Wed, Jun 11, 2014 at 06:41:49PM +0300, Alexander Shishkin wrote: > >> +void perf_aux_output_end(struct perf_output_handle *handle, unsigned long > >> size, > >> + bool truncate

Re: [RFC v2 6/7] perf: add api for pmus to write to AUX space

2014-06-25 Thread Alexander Shishkin
Peter Zijlstra writes: > On Wed, Jun 11, 2014 at 06:41:49PM +0300, Alexander Shishkin wrote: >> +void perf_aux_output_end(struct perf_output_handle *handle, unsigned long >> size, >> + bool truncated) >> +{ >> +struct ring_buffer *rb = handle->rb; >> +unsigned long au

Re: [RFC v2 6/7] perf: add api for pmus to write to AUX space

2014-06-24 Thread Peter Zijlstra
On Wed, Jun 11, 2014 at 06:41:49PM +0300, Alexander Shishkin wrote: > +void perf_aux_output_end(struct perf_output_handle *handle, unsigned long > size, > + bool truncated) > +{ > + struct ring_buffer *rb = handle->rb; > + unsigned long aux_head; > + > + aux_head =

[RFC v2 6/7] perf: add api for pmus to write to AUX space

2014-06-11 Thread Alexander Shishkin
For pmus that wish to write data to AUX space, provide perf_aux_output_{begin,end}() calls to initiate/commit data writes, similarly to perf_output_{begin,end}. These also use the same output handle structure. After the perf_aux_output_begin() returns successfully, handle->size is set to the maxim