diff options
author | 2024-12-06 08:31:46 -0800 | |
---|---|---|
committer | 2024-12-12 11:27:28 +0100 | |
commit | f5cd0e316f14d79c9eb0cf8fe7e60cee3a657aa8 (patch) | |
tree | 2289b220f9099591e69bcc48c6b01f48fa137482 /arch/x86/kernel/cpu/resctrl/internal.h | |
parent | x86/resctrl: Make mba_sc use total bandwidth if local is not supported (diff) | |
download | wireguard-linux-f5cd0e316f14d79c9eb0cf8fe7e60cee3a657aa8.tar.xz wireguard-linux-f5cd0e316f14d79c9eb0cf8fe7e60cee3a657aa8.zip |
x86/resctrl: Add "mba_MBps_event" file to CTRL_MON directories
The "mba_MBps" mount option provides an alternate method to control memory
bandwidth. Instead of specifying allowable bandwidth as a percentage of
maximum possible, the user provides a MiB/s limit value.
In preparation to allow the user to pick the memory bandwidth monitoring event
used as input to the feedback loop, provide a file in each CTRL_MON group
directory that shows the event currently in use. Note that this file is only
visible when the "mba_MBps" mount option is in use.
Suggested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/20241206163148.83828-7-tony.luck@intel.com
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kernel/cpu/resctrl/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h index 542d01c055aa..1bd61edbaf12 100644 --- a/arch/x86/kernel/cpu/resctrl/internal.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -610,6 +610,8 @@ ssize_t rdtgroup_schemata_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off); int rdtgroup_schemata_show(struct kernfs_open_file *of, struct seq_file *s, void *v); +int rdtgroup_mba_mbps_event_show(struct kernfs_open_file *of, + struct seq_file *s, void *v); bool rdtgroup_cbm_overlaps(struct resctrl_schema *s, struct rdt_ctrl_domain *d, unsigned long cbm, int closid, bool exclusive); unsigned int rdtgroup_cbm_to_size(struct rdt_resource *r, struct rdt_ctrl_domain *d, |