Re: [PATCH v10 05/17] fs/resctrl: Add interface to disable a monitor event
From: Reinette Chatre
Date: Mon Aug 17 2026 - 20:52:37 EST
Hi Tony,
On 7/29/26 10:27 AM, Tony Luck wrote:
> resctrl currently assumes all monitor events are enabled before any domain
> is created, because per-domain state is allocated by the architecture's CPU
> hotplug callbacks. There is no way to disable an event once registered.
>
> AET events are enumerated by the INTEL_PMT_TELEMETRY driver. To allow that
> driver to be a loadable module, resctrl must tolerate AET events appearing
> and disappearing, which requires the ability to disable an event when the
> driver is unloaded.
>
> Add resctrl_disable_mon_event(). The architecture owns domain lifetime
> and knows mount state, so it is responsible for calling this only while
> resctrl is unmounted and for cleaning up any per-domain state. Document
> those requirements in the kerneldoc since they are not enforced in code.
>
> Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
> ---
Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Reinette