linux/drivers/resctrl
James Morse 1458c4f053 arm_mpam: resctrl: Add support for csu counters
resctrl exposes a counter via a file named llc_occupancy. This isn't really
a counter as its value goes up and down, this is a snapshot of the cache
storage usage monitor.

Add some picking code which will only find an L3. The resctrl counter
file is called llc_occupancy but we don't check it is the last one as
it is already identified as L3.

Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Zeng Heng <zengheng4@huawei.com>
Tested-by: Punit Agrawal <punit.agrawal@oss.qualcomm.com>
Tested-by: Gavin Shan <gshan@redhat.com>
Tested-by: Jesse Chick <jessechick@os.amperecomputing.com>
Reviewed-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Co-developed-by: Dave Martin <dave.martin@arm.com>
Signed-off-by: Dave Martin <dave.martin@arm.com>
Co-developed-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
2026-03-27 15:31:23 +00:00
..
Kconfig arm64: mpam: Drop the CONFIG_EXPERT restriction 2026-03-27 15:28:35 +00:00
Makefile arm_mpam: resctrl: Add boilerplate cpuhp and domain allocation 2026-03-27 15:29:27 +00:00
mpam_devices.c arm_mpam: resctrl: Convert to/from MPAMs fixed-point formats 2026-03-27 15:30:26 +00:00
mpam_internal.h arm_mpam: resctrl: Add monitor initialisation and domain boilerplate 2026-03-27 15:31:10 +00:00
mpam_resctrl.c arm_mpam: resctrl: Add support for csu counters 2026-03-27 15:31:23 +00:00
test_mpam_devices.c arm_mpam: Add kunit tests for props_mismatch() 2025-11-19 18:34:24 +00:00
test_mpam_resctrl.c arm_mpam: resctrl: Add kunit test for control format conversions 2026-03-27 15:31:04 +00:00