Re: [PATCH v3 2/3] selftests/resctrl: Replace counter index references with pointers
From: wuyifan
Date: Fri Jun 26 2026 - 05:43:31 EST
Hi Reinette,
Thanks for the review.
On 6/26/2026 6:14 AM, Reinette Chatre wrote:
On 5/22/26 2:05 AM, Yifan Wu wrote:
Replace direct counter number references with pointers to remove thePlease improve readibility here by moving the above two lines up while ensuring alignment with
dependency on fixed array indexing and enable the use of different
data structures for counter management.
Signed-off-by: Yifan Wu<wuyifan50@xxxxxxxxxx>
---
open parenthesis. Specifically:
imc_counter->fd = perf_event_open(&imc_counter->pe, -1, cpu_no, -1,
PERF_FLAG_FD_CLOEXEC);
...
With the style fixups:
| Reviewed-by: Reinette Chatre<reinette.chatre@xxxxxxxxx>
Reinette
I will fix that.
Thanks,
Yifan