]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/resctrl: Introduce event configuration field in struct mon_evt
authorBabu Moger <babu.moger@amd.com>
Fri, 5 Sep 2025 21:34:14 +0000 (16:34 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 10:18:31 +0000 (12:18 +0200)
commitebebda853633de389ba2c6737f8ca38405713e90
tree0bdaaa25c0b3e50ece7b8004fd516b4c6b17c723
parent84ecefb766748916099f5b7444a973a623611d63
fs/resctrl: Introduce event configuration field in struct mon_evt

When supported, mbm_event counter assignment mode allows the user to configure
events to track specific types of memory transactions.

Introduce an evt_cfg field in struct mon_evt to define the type of memory
transactions tracked by a monitoring event. Also add a helper function to get
the evt_cfg value.

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
fs/resctrl/internal.h
fs/resctrl/monitor.c
include/linux/resctrl.h