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

Reinette Chatre reinette.chatre at intel.com
Thu Sep 3 08:46:39 PDT 2026


Hi Shuah,

Could you please consider this series for inclusion into kselftest's "next"?

Thank you very much

Reinette

On 8/1/26 2:24 AM, Yifan Wu wrote:
> Hi all,
> 
> This patch series introduces dynamic linked list management for IMC
> counters, enabling the tests to use all available counters detected by
> hardware instead of a fixed upper limit, without the need for array
> bounds checking.
> 
> This series is based on Reinette's patch series aimed at fixing the
> resctrl tests, available at:
> https://lore.kernel.org/lkml/cover.1775266384.git.reinette.chatre@intel.com/
> 
> Changes in v4:
> - Fix the style under Reinette's review and add Reviewed-by tags.
> 
> Changes in v3:
> - Rename functions and update comments.
> - Split the patches into incremental changes.
> - Explicitly release memory after failing to parse the imc config.
> 
> Changes in v2:
> - Fix code style and variable names.
> - Integrate linked list initialization and cleanup into patch 1.
> - Split the conversion from arrays to linked list across the remaining
>   patches.
> - Remove the IMC count and the global imcs variable.
> 
> v3: https://lore.kernel.org/all/20260522090540.444554-1-wuyifan50@huawei.com/
> v2: https://lore.kernel.org/all/20260410093352.3988125-1-wuyifan50@huawei.com/
> v1: https://lore.kernel.org/all/20260324125034.1509177-1-wuyifan50@huawei.com/
> 
> Yifan Wu (3):
>   selftests/resctrl: Introduce linked list management for IMC counters
>   selftests/resctrl: Replace counter index references with pointers
>   selftests/resctrl: Enable dynamic management of IMC counters via
>     linked list
> 
>  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 | 169 +++++++++---------
>  4 files changed, 92 insertions(+), 81 deletions(-)
> 




More information about the linux-arm-kernel mailing list