Re: [PATCH 2/4] perf/x86: Fix period for non sampling events

From: Peter Zijlstra
Date: Tue Jan 03 2017 - 04:41:15 EST


On Wed, Dec 28, 2016 at 02:31:04PM +0100, Jiri Olsa wrote:
> When in counting mode we setup the counter with the
> longest possible period and read the value with read
> syscall.
>
> We also still setup the PMI to be triggered when such
> counter overflow to reconfigure it.
>
> We also get PEBS interrupt if such counter has precise_ip
> set (which makes no sense, but it's possible).

I think we should reject non sampling pebs events, as you say they make
no sense what so ever.