]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86,fs/resctrl: Add and initialize a resource for package scope monitoring
authorTony Luck <tony.luck@intel.com>
Wed, 17 Dec 2025 17:21:01 +0000 (09:21 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 9 Jan 2026 15:37:07 +0000 (16:37 +0100)
commit2e53ad66686a46b141c3395719afeee3057ffe2f
tree6ef0ba37b9639688e3ce0a7392106b73e20e0dba
parent39208e73a40e0e81a5b12ddc11157c0a414df307
x86,fs/resctrl: Add and initialize a resource for package scope monitoring

Add a new PERF_PKG resource and introduce package level scope for monitoring
telemetry events so that CPU hotplug notifiers can build domains at the
package granularity.

Use the physical package ID available via topology_physical_package_id()
to identify the monitoring domains with package level scope. This enables
user space to use:

  /sys/devices/system/cpu/cpuX/topology/physical_package_id

to identify the monitoring domain a CPU is associated with.

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
arch/x86/kernel/cpu/resctrl/core.c
fs/resctrl/internal.h
fs/resctrl/rdtgroup.c
include/linux/resctrl.h