mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
fs/resctrl: Provide interface to update the event configurations
When "mbm_event" counter assignment mode is enabled, users can modify the
event configuration by writing to the 'event_filter' resctrl file. The event
configurations for mbm_event mode are located in
/sys/fs/resctrl/info/L3_MON/event_configs/.
Update the assignments of all CTRL_MON and MON resource groups when the event
configuration is modified.
Example:
$ mount -t resctrl resctrl /sys/fs/resctrl
$ cd /sys/fs/resctrl/
$ cat info/L3_MON/event_configs/mbm_local_bytes/event_filter
local_reads,local_non_temporal_writes,local_reads_slow_memory
$ echo "local_reads,local_non_temporal_writes" >
info/L3_MON/event_configs/mbm_total_bytes/event_filter
$ cat info/L3_MON/event_configs/mbm_total_bytes/event_filter
local_reads,local_non_temporal_writes
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
This commit is contained in:
committed by
Borislav Petkov (AMD)
parent
ea274cbeaf
commit
f9ae5913d4
@@ -343,6 +343,18 @@ with the following files:
|
||||
# cat /sys/fs/resctrl/info/L3_MON/event_configs/mbm_local_bytes/event_filter
|
||||
local_reads,local_non_temporal_writes,local_reads_slow_memory
|
||||
|
||||
Modify the event configuration by writing to the "event_filter" file within
|
||||
the "event_configs" directory. The read/write "event_filter" file contains the
|
||||
configuration of the event that reflects which memory transactions are counted by it.
|
||||
|
||||
For example::
|
||||
|
||||
# echo "local_reads, local_non_temporal_writes" >
|
||||
/sys/fs/resctrl/info/L3_MON/event_configs/mbm_total_bytes/event_filter
|
||||
|
||||
# cat /sys/fs/resctrl/info/L3_MON/event_configs/mbm_total_bytes/event_filter
|
||||
local_reads,local_non_temporal_writes
|
||||
|
||||
"max_threshold_occupancy":
|
||||
Read/write file provides the largest value (in
|
||||
bytes) at which a previously used LLC_occupancy
|
||||
|
||||
Reference in New Issue
Block a user