diff options
author | Tony Luck <tony.luck@intel.com> | 2024-06-29 00:56:13 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2024-07-02 20:49:54 +0300 |
commit | 0158ed6a1335ff37f0336a986d7b99d6e97d46e9 (patch) | |
tree | 48e12f0c13f8f2df230a020e5058fdd114cb0d82 /arch/x86/kernel/trace_clock.c | |
parent | 92b5d0b1189ea9e9f00ae493fc99102fe7f2442f (diff) | |
download | linux-0158ed6a1335ff37f0336a986d7b99d6e97d46e9.tar.xz |
x86/resctrl: Create Sub-NUMA Cluster (SNC) monitor files
When SNC mode is enabled, create subdirectories and files to monitor at the SNC
node granularity. Legacy behavior is preserved by tagging the monitor files at
the L3 granularity with the "sum" attribute. When the user reads these files
the kernel will read monitor data from all SNC nodes that share the same L3
cache instance and return the aggregated value to the user.
Note that the "domid" field for files that must sum across SNC domains has the
L3 cache instance id, while non-summing files use the domain id.
The "sum" files do not need to make a call to mon_event_read() to initialize
the MBM counters. This will be handled by initializing the individual SNC nodes
that share the L3.
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/20240628215619.76401-14-tony.luck@intel.com
Diffstat (limited to 'arch/x86/kernel/trace_clock.c')
0 files changed, 0 insertions, 0 deletions