Re: [Patch v3 12/22] perf/x86/intel: Update dyn_constranit base on PEBS event precise level
From: Peter Zijlstra
Date: Wed Apr 16 2025 - 15:56:27 EST
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.