Home
last modified time | relevance | path

Searched refs:ctrlgrp (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/tools/testing/selftests/resctrl/
H A Dresctrl_val.c407 void set_mbm_path(const char *ctrlgrp, const char *mongrp, int resource_id) in set_mbm_path() argument
409 if (ctrlgrp && mongrp) in set_mbm_path()
411 RESCTRL_PATH, ctrlgrp, mongrp, resource_id); in set_mbm_path()
412 else if (!ctrlgrp && mongrp) in set_mbm_path()
415 else if (ctrlgrp && !mongrp) in set_mbm_path()
417 ctrlgrp, resource_id); in set_mbm_path()
418 else if (!ctrlgrp && !mongrp) in set_mbm_path()
430 static void initialize_mem_bw_resctrl(const char *ctrlgrp, const char *mongrp, in initialize_mem_bw_resctrl() argument
441 set_mbm_path(ctrlgrp, mongrp, resource_id); in initialize_mem_bw_resctrl()
444 if (ctrlgrp) in initialize_mem_bw_resctrl()
[all …]
H A Dresctrlfs.c380 int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp, in write_bm_pid_to_resctrl() argument
387 if (strlen(ctrlgrp)) in write_bm_pid_to_resctrl()
388 sprintf(controlgroup, "%s/%s", RESCTRL_PATH, ctrlgrp); in write_bm_pid_to_resctrl()
393 ret = create_grp(ctrlgrp, controlgroup, RESCTRL_PATH); in write_bm_pid_to_resctrl()
439 int write_schemata(char *ctrlgrp, char *schemata, int cpu_no, char *resctrl_val) in write_schemata() argument
464 if (strlen(ctrlgrp) != 0) in write_schemata()
465 sprintf(controlgroup, "%s/%s/schemata", RESCTRL_PATH, ctrlgrp); in write_schemata()
H A Dresctrl.h59 char ctrlgrp[64]; member
88 int write_schemata(char *ctrlgrp, char *schemata, int cpu_no,
90 int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp,
H A Dcat_test.c36 ret = write_schemata(p->ctrlgrp, schemata, p->cpu_no, in cat_setup()
145 strcpy(param.ctrlgrp, "c2"); in cat_perf_miss_val()
164 strcpy(param.ctrlgrp, "c1"); in cat_perf_miss_val()
H A Dmbm_test.c99 ret = write_schemata(p->ctrlgrp, "100", p->cpu_no, in mbm_setup()
116 .ctrlgrp = "c1", in mbm_bw_change()
H A Dmba_test.c43 ret = write_schemata(p->ctrlgrp, allocation_str, p->cpu_no, in mba_setup()
148 .ctrlgrp = "c1", in mba_schemata_change()
H A Dcmt_test.c104 .ctrlgrp = "c1", in cmt_resctrl_val()
H A Dcache.c229 ret = write_bm_pid_to_resctrl(bm_pid, param->ctrlgrp, param->mongrp, in cat_val()