Thread (22 messages) flat view 22 messages, 3 authors, 2026-03-24

Re: [RFC patch 3/9] selftests/resctrl: Use dynamic linked list for iMC counters config

From: Reinette Chatre <reinette.chatre@intel.com>
Date: 2026-03-12 20:59:07
Also in: linux-kselftest, lkml

Hi Yifan,

On 3/3/26 8:03 PM, Yifan Wu wrote:
Currently, a fixed-size array is used to store the configurations for
all discovered iMC counters, which has several issues:

1. Fixed Overhead: The array is allocated a fixed size, even if the
platform has fewer iMCs.

2. Out-of-Bounds Access: On platforms with more iMC counters than
MAX_IMCS, the num_of_imcs() function can return a larger number, leading
to an array index out-of-bounds access.
Please note there are some fixes in progress that include addressing this:
https://lore.kernel.org/linux-patches/cover.1772582958.git.reinette.chatre@intel.com/ (local)

Having this managed as a list sounds good to me. Could you please build
on top of the pending fixes? Also, please write your changelogs in imperative tone
to make it clear what this patch does versus what it builds on and also please follow
kernel coding style.

Reinette

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help