Re: [PATCH v4 2/5] selftests/resctrl: Add helpers for the non-contiguous test

2024-02-05 Thread Reinette Chatre
Hi Maciej, The subject mentions "helpers" (plural) that may not be accurate anymore. On 2/5/2024 4:08 AM, Maciej Wieczor-Retman wrote: > The CAT non-contiguous selftests have to read the file responsible for > reporting support of non-contiguous CBMs in kernel (resctrl). Then the > test compares

Re: [PATCH v4 2/5] selftests/resctrl: Add helpers for the non-contiguous test

2024-02-05 Thread Maciej Wieczor-Retman
On 2024-02-05 at 15:16:27 +0200, Ilpo Järvinen wrote: >On Mon, 5 Feb 2024, Maciej Wieczor-Retman wrote: > >> The CAT non-contiguous selftests have to read the file responsible for >> reporting support of non-contiguous CBMs in kernel (resctrl). Then the >> test compares if that information matches

Re: [PATCH v4 2/5] selftests/resctrl: Add helpers for the non-contiguous test

2024-02-05 Thread Ilpo Järvinen
On Mon, 5 Feb 2024, Maciej Wieczor-Retman wrote: > The CAT non-contiguous selftests have to read the file responsible for > reporting support of non-contiguous CBMs in kernel (resctrl). Then the > test compares if that information matches what is reported by CPUID > output. > > Add a generic help

[PATCH v4 2/5] selftests/resctrl: Add helpers for the non-contiguous test

2024-02-05 Thread Maciej Wieczor-Retman
The CAT non-contiguous selftests have to read the file responsible for reporting support of non-contiguous CBMs in kernel (resctrl). Then the test compares if that information matches what is reported by CPUID output. Add a generic helper function to read an unsigned number from a file in /sys/fs/