Re: [PATCH 4/7] selftests/resctrl: Simplify span lifetime
From: Reinette Chatre
Date: Mon Aug 14 2023 - 13:51:01 EST
Hi Ilpo,
On 8/8/2023 2:16 AM, Ilpo Järvinen wrote:
> struct resctrl_val_param contains span member. resctrl_val(), however,
> never uses it because the value of span is embedded into the default
> benchmark command and parsed from it by run_benchmark().
>
> Remove span from resctrl_val_param. Provide DEFAULT_SPAN for the code
> that needs it. CMT and CAT tests communicate span that is different
> from the DEFAULT_SPAN between their internal functions which is
> converted into passing it directly as a parameter.
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
If I understand correctly the custom benchmark has always been
required to operate on the same span as the default benchmark in
order for the results to be measured accurately.
Thank you for eliminating unnecessary code.
Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Reinette