Re: [tip:perf/core] perf/x86/intel: Clean-up/reduce PEBS code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  
>  	/*
>  	 * Should not happen, we program the threshold at 1 and do not
>  	 * set a reset value.
>  	 */
> -	WARN_ONCE(n > x86_pmu.max_pebs_events,
> -		  "Unexpected number of pebs records %d\n", n);
> +	WARN_ONCE(top - at > x86_pmu.max_pebs_events * x86_pmu.pebs_record_size,

That should work yes.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux