]> Gentwo Git Trees - linux/.git/commit
fs/resctrl: Introduce mbm_assign_on_mkdir to enable assignments on mkdir
authorBabu Moger <babu.moger@amd.com>
Fri, 5 Sep 2025 21:34:25 +0000 (16:34 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 10:42:02 +0000 (12:42 +0200)
commitac1df9bb0ba3ae94137fb494cd9efc598f65d826
tree2e87d8ada4b96cac0abb9b4d0c91c7363000e4b0
parentf9ae5913d47cda67481a4f54cc3273d3d1d00a01
fs/resctrl: Introduce mbm_assign_on_mkdir to enable assignments on mkdir

The "mbm_event" counter assignment mode allows users to assign a hardware
counter to an RMID, event pair and monitor the bandwidth as long as it is
assigned.

Introduce a user-configurable option that determines if a counter will
automatically be assigned to an RMID, event pair when its associated
monitor group is created via mkdir. Accessible when "mbm_event" counter
assignment mode is enabled.

Suggested-by: Peter Newman <peternewman@google.com>
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
include/linux/resctrl.h