summaryrefslogtreecommitdiff
path: root/fs/resctrl/internal.h
diff options
context:
space:
mode:
authorBabu Moger <babu.moger@amd.com>2025-09-06 00:34:14 +0300
committerBorislav Petkov (AMD) <bp@alien8.de>2025-09-15 13:18:31 +0300
commitebebda853633de389ba2c6737f8ca38405713e90 (patch)
tree0bdaaa25c0b3e50ece7b8004fd516b4c6b17c723 /fs/resctrl/internal.h
parent84ecefb766748916099f5b7444a973a623611d63 (diff)
downloadlinux-ebebda853633de389ba2c6737f8ca38405713e90.tar.xz
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
Diffstat (limited to 'fs/resctrl/internal.h')
-rw-r--r--fs/resctrl/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/resctrl/internal.h b/fs/resctrl/internal.h
index 4f372e80bf37..1cddfff007a2 100644
--- a/fs/resctrl/internal.h
+++ b/fs/resctrl/internal.h
@@ -56,6 +56,10 @@ static inline struct rdt_fs_context *rdt_fc2context(struct fs_context *fc)
* @evtid: event id
* @rid: resource id for this event
* @name: name of the event
+ * @evt_cfg: Event configuration value that represents the
+ * memory transactions (e.g., READS_TO_LOCAL_MEM,
+ * READS_TO_REMOTE_MEM) being tracked by @evtid.
+ * Only valid if @evtid is an MBM event.
* @configurable: true if the event is configurable
* @enabled: true if the event is enabled
*/
@@ -63,6 +67,7 @@ struct mon_evt {
enum resctrl_event_id evtid;
enum resctrl_res_level rid;
char *name;
+ u32 evt_cfg;
bool configurable;
bool enabled;
};