Re: [PATCH v5 27/29] fs/resctrl: Add file system mechanism for architecture info file

From: Reinette Chatre
Date: Wed Jun 04 2025 - 00:18:12 EST


Hi Tony,

On 5/21/25 3:50 PM, Tony Luck wrote:
> Creation of all files in the resctrl file system is under control of
> the file system layer.
>
> But some resources may need to add a file to the info/{resource}
> directory for debug purposes.
>
> Add a new rdt_resource::info_file field for the resource to specify
> show() and/or write() operations. These will be called with the
> rdtgroup_mutex held.
>
> Architecture can note the file is only for debug using by setting
> the rftype::flags RFTYPE_DEBUG bit.

This needs to change. This punches a crater through the separation
between fs and arch that we worked hard to achieve. Please make an attempt
to do so as I am sure you can.

Reinette