Re: [PATCH v4 09/16] selftests/resctrl: Add ->measure() callback to resctrl_val_param

From: Reinette Chatre
Date: Wed May 29 2024 - 13:46:34 EST


Hi Ilpo,

On 5/20/24 5:30 AM, Ilpo Järvinen wrote:
The measurement done in resctrl_val() varies depending on test type.
The decision for how to measure is decided based on the string compare
to test name which is quite inflexible.

Add ->measure() callback into the struct resctrl_val_param to allow
each test to provide necessary code as a function which simplifies what
resctrl_val() has to do.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
---

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette