Re: [PATCH v6 6/9] x86/resctrl: Refactor the monitor read function

From: Reinette Chatre

Date: Wed Aug 19 2026 - 19:07:37 EST


Hi Chenyu,

On 7/25/26 2:23 AM, Chen Yu wrote:

> diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c
> index 569894d6e5c8..786828a0a3c2 100644
> --- a/arch/x86/kernel/cpu/resctrl/monitor.c
> +++ b/arch/x86/kernel/cpu/resctrl/monitor.c
> @@ -239,9 +239,9 @@ static u64 get_corrected_val(struct rdt_resource *r, struct rdt_l3_mon_domain *d
> return chunks * hw_res->mon_scale;
> }
>
> -int resctrl_arch_rmid_read(struct rdt_resource *r, struct rdt_domain_hdr *hdr,
> - u32 unused, u32 rmid, enum resctrl_event_id eventid,
> - void *arch_priv, u64 *val, void *ignored)
> +static int arch_l3_read_event(struct rdt_domain_hdr *hdr, u32 rmid,
> + enum resctrl_event_id eventid, u64 *val,
> + struct rdt_resource *r)

Could you please keep the same parameter order as original resctrl_arch_rmid_read()?

Reinette