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

Alexander Shishkin alexander.shishkin at linux.intel.com
Fri Feb 17 05:40:23 PST 2017


Will Deacon <will.deacon at arm.com> 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) ?
> +			    PERF_AUX_FLAG_OVERWRITE : 0);

Heh, this one would have taken some time to debug. :)

Regards,
--
Alex



More information about the linux-arm-kernel mailing list