[PATCH v3 05/16] selftests/resctrl: Consolidate get_domain_id() into resctrl_val()