[PATCH 0/3] selftests/resctrl: Add dynamic linked list management for IMC counters

From: Yifan Wu

Date: Tue Mar 24 2026 - 08:56:45 EST


Hi all,

This patch series adds dynamic linked list management for the IMC
counters, which can work based on the actual number of counters instead of
an upper limit, without the need for array out-of-bounds access check.

This patch series is based on the Reinette's patch series aimed at fixing
the resctrl test and can be found at:
https://lore.kernel.org/lkml/cover.1773432891.git.reinette.chatre@xxxxxxxxx/

Yifan Wu (3):
selftests/resctrl: Introduced linked list management for IMC counters
selftests/resctrl: Replace array-based IMC counter management with
linked lists
selftests/resctrl: Add cleanup for MBM/MBA test

tools/testing/selftests/resctrl/mba_test.c | 1 +
tools/testing/selftests/resctrl/mbm_test.c | 1 +
tools/testing/selftests/resctrl/resctrl.h | 2 +
tools/testing/selftests/resctrl/resctrl_val.c | 159 ++++++++++--------
4 files changed, 95 insertions(+), 68 deletions(-)

--
2.33.0