Re: [PATCH v3 20/29] selftests/resctrl: Replace file write with volatile variable

2023-12-13 Thread Reinette Chatre
Hi Ilpo, On 12/11/2023 4:18 AM, Ilpo Järvinen wrote: > The fill_buf code prevents compiler optimizating the entire read loop > away by writing the final value of the variable into a file. While it > achieves the goal, writing into a file requires significant amount of > work within the innermost t

[PATCH v3 20/29] selftests/resctrl: Replace file write with volatile variable

2023-12-11 Thread Ilpo Järvinen
The fill_buf code prevents compiler optimizating the entire read loop away by writing the final value of the variable into a file. While it achieves the goal, writing into a file requires significant amount of work within the innermost test loop and also error handling. A simpler approach is to ta