diff options
| author | 2025-12-17 09:21:15 -0800 | |
|---|---|---|
| committer | 2026-01-10 11:46:48 +0100 | |
| commit | d0891647fbc6e931f27517364cbc4ee1811d76db (patch) | |
| tree | 4922c8f03d8b740ff63c4ac5d412995add064ec0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | x86,fs/resctrl: Compute number of RMIDs as minimum across resources (diff) | |
fs/resctrl: Move RMID initialization to first mount
L3 monitor features are enumerated during resctrl initialization and
rmid_ptrs[] that tracks all RMIDs and depends on the number of supported
RMIDs is allocated during this time.
Telemetry monitor features are enumerated during first resctrl mount and
may support a different number of RMIDs compared to L3 monitor features.
Delay allocation and initialization of rmid_ptrs[] until first mount.
Since the number of RMIDs cannot change on later mounts, keep the same set of
rmid_ptrs[] until resctrl_exit(). This is required because the limbo handler
keeps running after resctrl is unmounted and needs to access rmid_ptrs[]
as it keeps tracking busy RMIDs after unmount.
Rename routines to match what they now do:
dom_data_init() -> setup_rmid_lru_list()
dom_data_exit() -> free_rmid_lru_list()
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>
Link: https://lore.kernel.org/20251217172121.12030-1-tony.luck@intel.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
