Re: [Patch v3 12/22] perf/x86/intel: Update dyn_constranit base on PEBS event precise level

Peter Zijlstra
2025-04-16T19:56:18Z

On Wed, Apr 16, 2025 at 03:45:24PM -0400, Liang, Kan wrote:

> I see. I think we can check the constraint table and update the overlap
> bit accordingly. Similar to what we did in the
> intel_pmu_check_event_constraints() for the fixed counters.
>
> I'm thinking something as below (Just a POC, not tested.)

I'll try and digest in more detail tomorrow, but having overlap it *not*
a good thing. Which is why I've always asked to make sure this
doesn't happen :/

At the very least we should WARN if we find the dynamic constraint gets
us there.