]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/resctrl: Add resctrl file to display number of assignable counters
authorBabu Moger <babu.moger@amd.com>
Fri, 5 Sep 2025 21:34:10 +0000 (16:34 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 10:12:09 +0000 (12:12 +0200)
commit8c793336eaf8893a29626155d74615fe9f03e7f2
treea6f94dee686630e0a0e6cd3334cfbee63e349377
parent3b497c3f4f0427d940ec5c8600e840c8adc5cfbf
fs/resctrl: Add resctrl file to display number of assignable counters

The "mbm_event" counter assignment mode allows users to assign a hardware
counter to an RMID, event pair and monitor bandwidth usage as long as it is
assigned.  The hardware continues to track the assigned counter until it is
explicitly unassigned by the user.

Create 'num_mbm_cntrs' resctrl file that displays the number of counters
supported in each domain. 'num_mbm_cntrs' is only visible to user space when
the system supports "mbm_event" mode.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/cover.1757108044.git.babu.moger@amd.com
Documentation/filesystems/resctrl.rst
fs/resctrl/internal.h
fs/resctrl/monitor.c
fs/resctrl/rdtgroup.c