Re: [PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-02-17 Thread Alexander Shishkin
Will Deacon writes: > On Fri, Feb 17, 2017 at 04:06:59PM +0200, Alexander Shishkin wrote: >> Will Deacon writes: >> >> > On Fri, Feb 17, 2017 at 03:40:23PM +0200, Alexander Shishkin wrote: >> >> Will Deacon writes: >> >> >> >> > @@ -485,7 +485,8 @@ int intel_bts_interrupt(void) >> >> >

Re: [PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-02-17 Thread Will Deacon
On Fri, Feb 17, 2017 at 04:06:59PM +0200, Alexander Shishkin wrote: > Will Deacon writes: > > > On Fri, Feb 17, 2017 at 03:40:23PM +0200, Alexander Shishkin wrote: > >> Will Deacon writes: > >> > >> > @@ -485,7 +485,8 @@ int intel_bts_interrupt(void) > >> > return handled; > >>

Re: [PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-02-17 Thread Alexander Shishkin
Will Deacon writes: > On Fri, Feb 17, 2017 at 03:40:23PM +0200, Alexander Shishkin wrote: >> Will Deacon writes: >> >> > @@ -485,7 +485,8 @@ int intel_bts_interrupt(void) >> >return handled; >> > >> >perf_aux_output_end(&bts->handle, local_xchg(&buf->data_size, 0), >> > -

Re: [PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-02-17 Thread Will Deacon
On Fri, Feb 17, 2017 at 03:40:23PM +0200, Alexander Shishkin wrote: > Will Deacon writes: > > > @@ -485,7 +485,8 @@ int intel_bts_interrupt(void) > > return handled; > > > > perf_aux_output_end(&bts->handle, local_xchg(&buf->data_size, 0), > > - !!local_xch

Re: [PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-02-17 Thread Alexander Shishkin
Will Deacon writes: > @@ -485,7 +485,8 @@ int intel_bts_interrupt(void) > return handled; > > perf_aux_output_end(&bts->handle, local_xchg(&buf->data_size, 0), > - !!local_xchg(&buf->lost, 0)); > + local_xchg(&buf->lost, 0) ? >