Re: [PATCH v8 08/25] x86/resctrl: Introduce interface to display number of monitoring counters

From: Reinette Chatre
Date: Mon Oct 14 2024 - 13:00:10 EST


Hi Tony and Babu,

On 10/10/24 11:36 AM, Moger, Babu wrote:
> Hi Tony,
>
> On 10/10/24 12:08, Luck, Tony wrote:
>> Babu,
>>
>>> We have the information already in r->mon.mbm_cntr_free_map.
>>>
>>> How about adding an extra text while printing num_mbm_cntrs?
>>>
>>> $ cat /sys/fs/resctrl/info/L3_MON/num_mbm_cntrs
>>> Total 32, Available 16
>>
>> Either that or:
>> Total 32
>> Available 16
>>
>
> Sure. Fine with me.

I think separate files would be easier to parse and matches the existing resctrl
interface in this regard. How about "available_mbm_cntrs"?

Reinette