linux/fs/resctrl
Tony Luck ee7f6af79f fs/resctrl: Move allocation/free of closid_num_dirty_rmid[]
closid_num_dirty_rmid[] and rmid_ptrs[] are allocated together during resctrl
initialization and freed together during resctrl exit.

Telemetry events are enumerated on resctrl mount so only at resctrl mount will
the number of RMID supported by all monitoring resources and needed as size
for rmid_ptrs[] be known.

Separate closid_num_dirty_rmid[] and rmid_ptrs[] allocation and free in
preparation for rmid_ptrs[] to be allocated on resctrl mount.

Keep the rdtgroup_mutex protection around the allocation and free of
closid_num_dirty_rmid[] as ARM needs this to guarantee memory ordering.

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
2026-01-10 11:33:14 +01:00
..
ctrlmondata.c fs/resctrl: Emphasize that L3 monitoring resource is required for summing domains 2026-01-09 16:37:07 +01:00
internal.h x86,fs/resctrl: Add architectural event pointer 2026-01-09 16:37:08 +01:00
Kconfig
Makefile
monitor_trace.h
monitor.c fs/resctrl: Move allocation/free of closid_num_dirty_rmid[] 2026-01-10 11:33:14 +01:00
pseudo_lock.c mm: update resctl to use mmap_prepare 2025-11-16 17:28:14 -08:00
rdtgroup.c x86/resctrl: Handle number of RMIDs supported by RDT_RESOURCE_PERF_PKG 2026-01-10 11:20:14 +01:00