Re: [PATCH v12 16/31] x86,fs/resctrl: Add architectural event pointer
From: Reinette Chatre
Date: Thu Oct 23 2025 - 00:34:32 EST
Hi Tony,
On 10/13/25 3:33 PM, Tony Luck wrote:
> The resctrl file system layer passes the domain, RMID, and event id to the
> architecture to fetch an event counter.
>
> Fetching a telemetry event counter requires additional information that is
> private to the architecture, for example, the offset into MMIO space from
> where the counter should be read.
>
> Add mon_evt::arch_priv that architecture can use for any private data
> related to the event. resctrl filesystem initializes mon_evt::arch_priv
> when the architecture enables the event and passes it back to architecture
> when needing to fetch an event counter.
>
> Suggested-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
> Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
> ---
This will need to be rebased, but that should be straight forward.
Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Reinette