diff options
author | Ilpo Järvinen <[email protected]> | 2024-06-10 18:14:45 +0300 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2024-07-11 11:23:53 -0600 |
commit | 9224db5180f244f169fb81a3c88c48bf612ba238 (patch) | |
tree | 5ff14f795b65546c1c7f98b0028050594451c1b8 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 2704b2d117c52cd156bcdcad1eefd9c2dad1794d (diff) |
selftests/resctrl: Consolidate get_domain_id() into resctrl_val()
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 <[email protected]>
Tested-by: Babu Moger <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions