]> Gentwo Git Trees - linux/.git/commit
fs/resctrl: Introduce counter ID read, reset calls in mbm_event mode
authorBabu Moger <babu.moger@amd.com>
Fri, 5 Sep 2025 21:34:19 +0000 (16:34 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 10:26:50 +0000 (12:26 +0200)
commit862314fd1f93d96eddb0559a807c66cb1f6ee520
treede85c33f35b22884bb27d575ebfb0ab1cc6a2264
parentbc53eea6c2a1dea152a0073a2f2814b697ad197e
fs/resctrl: Introduce counter ID read, reset calls in mbm_event mode

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

Introduce the architecture calls resctrl_arch_cntr_read() and
resctrl_arch_reset_cntr() to read and reset event counters when "mbm_event"
mode is supported. Function names match existing resctrl_arch_rmid_read() and
resctrl_arch_reset_rmid().

Suggested-by: Reinette Chatre <reinette.chatre@intel.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
include/linux/resctrl.h