Re: [PATCH v9 12/26] x86/resctrl: Remove MSR reading of event configuration value

From: Moger, Babu
Date: Tue Nov 19 2024 - 11:56:22 EST


Hi Reinette,

On 11/15/24 18:24, Reinette Chatre wrote:
> Hi Babu,
>
> On 10/29/24 4:21 PM, Babu Moger wrote:
>> --- a/include/linux/resctrl.h
>> +++ b/include/linux/resctrl.h
>> @@ -354,6 +354,10 @@ void resctrl_arch_reset_rmid(struct rdt_resource *r, struct rdt_mon_domain *d,
>> */
>> void resctrl_arch_reset_rmid_all(struct rdt_resource *r, struct rdt_mon_domain *d);
>>
>> +void resctrl_arch_mon_event_config_set(void *info);
>
> An architecture that may want to use this would need to know how to interpret
> the info passed. For an API I thus expect the struct it points to to also
> be available in this header file.

Sure, I will move structure mon_config_info to resctrl.h.

>
>
>> +u32 resctrl_arch_mon_event_config_get(struct rdt_mon_domain *d,
>> + enum resctrl_event_id eventid);
>> +
>> extern unsigned int resctrl_rmid_realloc_threshold;
>> extern unsigned int resctrl_rmid_realloc_limit;
>>
>
> Reinette
>

--
Thanks
Babu Moger