Re: [PATCH v4 04/16] selftests/resctrl: Consolidate get_domain_id() into resctrl_val()

From: Reinette Chatre
Date: Wed May 29 2024 - 13:43:44 EST


Hi Ilpo,

On 5/20/24 5:30 AM, Ilpo Järvinen wrote:
Both initialize_mem_bw_resctrl() and initialize_llc_occu_resctrl() that
are called from resctrl_val() need to determine domain ID to construct
resctrl fs related paths. Both functions do it by taking CPU ID which
neither needs for any other purpose than determining the domain ID.

Consolidate determining the domain ID into resctrl_val() and pass the
domain ID instead of CPU ID to initialize_mem_bw_resctrl() and
initialize_llc_occu_resctrl().

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

Thank you.

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

Reinette