Home
last modified time | relevance | path

Searched refs:resource_id (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/resctrl/
Dresctrl_val.c390 void set_mbm_path(const char *ctrlgrp, const char *mongrp, int resource_id) in set_mbm_path() argument
394 RESCTRL_PATH, ctrlgrp, mongrp, resource_id); in set_mbm_path()
397 mongrp, resource_id); in set_mbm_path()
400 ctrlgrp, resource_id); in set_mbm_path()
403 resource_id); in set_mbm_path()
416 int resource_id; in initialize_mem_bw_resctrl() local
418 if (get_resource_id(cpu_no, &resource_id) < 0) { in initialize_mem_bw_resctrl()
424 set_mbm_path(ctrlgrp, mongrp, resource_id); in initialize_mem_bw_resctrl()
429 RESCTRL_PATH, ctrlgrp, resource_id); in initialize_mem_bw_resctrl()
432 RESCTRL_PATH, resource_id); in initialize_mem_bw_resctrl()
[all …]
Dresctrlfs.c104 int get_resource_id(int cpu_no, int *resource_id) in get_resource_id() argument
122 if (fscanf(fp, "%d", resource_id) <= 0) { in get_resource_id()
497 int resource_id, ret = 0; in write_schemata() local
511 if (get_resource_id(cpu_no, &resource_id) < 0) { in write_schemata()
525 sprintf(schema, "%s%d%c%s", "L3:", resource_id, '=', schemata); in write_schemata()
527 sprintf(schema, "%s%d%c%s", "MB:", resource_id, '=', schemata); in write_schemata()
Dresctrl.h88 int get_resource_id(int cpu_no, int *resource_id);