Re: [PATCH v2 03/26] selftests/resctrl: Refactor fill_buf functions

2023-11-28 Thread Reinette Chatre
Hi Ilpo, On 11/20/2023 3:13 AM, Ilpo Järvinen wrote: > There are unnecessary nested calls in fill_buf.c: > - run_fill_buf() calls fill_cache() > - alloc_buffer() calls malloc_and_init_memory() > > Simplify the code flow and remove those unnecessary call levels by > moving the called code insi

[PATCH v2 03/26] selftests/resctrl: Refactor fill_buf functions

2023-11-20 Thread Ilpo Järvinen
There are unnecessary nested calls in fill_buf.c: - run_fill_buf() calls fill_cache() - alloc_buffer() calls malloc_and_init_memory() Simplify the code flow and remove those unnecessary call levels by moving the called code inside the calling function. Resolve the difference in run_fill_buf()