Re: [PATCH v17 30/32] fs/resctrl: Provide interface to create architecture specific debugfs area

From: Borislav Petkov

Date: Sat Jan 10 2026 - 05:58:31 EST


On Wed, Dec 17, 2025 at 09:21:17AM -0800, Tony Luck wrote:
> All files below /sys/fs/resctrl are considered user ABI.
>
> This leaves no place for architectures to provide additional interfaces.
>
> Add resctrl_debugfs_mon_info_arch_mkdir() which creates a directory in
> the debugfs file system for a monitoring resource. Naming follows the
> layout of the main resctrl hierarchy:
>
> /sys/kernel/debug/resctrl/info/{resource}_MON/{arch}
>
> The {arch} last level directory name matches the output of the user level
> "uname -m" command.
>
> Architecture code may use this directory for debug information, or for minor
> tuning of features. It must not be used for basic feature enabling as debugfs
> may not be configured/mounted on production systems.

I, like you guys, thought that debugfs is "safe" in the sense, stuff there
can't really be an ABI but just recently at LPC I got schooled about it and,
basically, if anything in luserspace starts using debugfs, it will be
considered an ABI.

And this thinking has been there for a looong time now:

https://lwn.net/Articles/309298/

So, before you put anything there, think again because you might end up
supporting it just like an ABI.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette