linux/fs/resctrl
Tony Luck f4e0cd80d3 x86,fs/resctrl: Handle domain creation/deletion for RDT_RESOURCE_PERF_PKG
The L3 resource has several requirements for domains. There are per-domain
structures that hold the 64-bit values of counters, and elements to keep
track of the overflow and limbo threads.

None of these are needed for the PERF_PKG resource. The hardware counters
are wide enough that they do not wrap around for decades.

Define a new rdt_perf_pkg_mon_domain structure which just consists of the
standard rdt_domain_hdr to keep track of domain id and CPU mask.

Update resctrl_online_mon_domain() for RDT_RESOURCE_PERF_PKG. The only action
needed for this resource is to create and populate domain directories if a
domain is added while resctrl is mounted.

Similarly resctrl_offline_mon_domain() only needs to remove domain directories.

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-09 23:36:41 +01:00
..
Kconfig
Makefile
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
monitor.c x86/resctrl: Read telemetry events 2026-01-09 23:02:57 +01:00
monitor_trace.h
pseudo_lock.c mm: update resctl to use mmap_prepare 2025-11-16 17:28:14 -08:00
rdtgroup.c x86,fs/resctrl: Handle domain creation/deletion for RDT_RESOURCE_PERF_PKG 2026-01-09 23:36:41 +01:00