Home
last modified time | relevance | path

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

/tools/testing/selftests/resctrl/
Dresctrl_tests.c73 static void run_mbm_test(bool has_ben, char **benchmark_cmd, int span, in run_mbm_test() argument
86 sprintf(benchmark_cmd[5], "%s", MBA_STR); in run_mbm_test()
87 res = mbm_bw_change(span, cpu_no, bw_report, benchmark_cmd); in run_mbm_test()
92 static void run_mba_test(bool has_ben, char **benchmark_cmd, int span, in run_mba_test() argument
105 sprintf(benchmark_cmd[1], "%d", span); in run_mba_test()
106 res = mba_schemata_change(cpu_no, bw_report, benchmark_cmd); in run_mba_test()
111 static void run_cmt_test(bool has_ben, char **benchmark_cmd, int cpu_no) in run_cmt_test() argument
122 sprintf(benchmark_cmd[5], "%s", CMT_STR); in run_cmt_test()
123 res = cmt_resctrl_val(cpu_no, 5, benchmark_cmd); in run_cmt_test()
148 char *benchmark_cmd[BENCHMARK_ARGS], bw_report[64], bm_type[64]; in main() local
[all …]
Dresctrl.h103 int resctrl_val(char **benchmark_cmd, struct resctrl_val_param *param);
104 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd);
107 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd);
115 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd);
Dcmt_test.c83 int cmt_resctrl_val(int cpu_no, int n, char **benchmark_cmd) in cmt_resctrl_val() argument
126 if (strcmp(benchmark_cmd[0], "fill_buf") == 0) in cmt_resctrl_val()
127 sprintf(benchmark_cmd[1], "%lu", param.span); in cmt_resctrl_val()
131 ret = resctrl_val(benchmark_cmd, &param); in cmt_resctrl_val()
Dresctrlfs.c310 char **benchmark_cmd; in run_benchmark() local
314 benchmark_cmd = info->si_ptr; in run_benchmark()
324 if (strcmp(benchmark_cmd[0], "fill_buf") == 0) { in run_benchmark()
326 span = strtoul(benchmark_cmd[1], NULL, 10); in run_benchmark()
327 malloc_and_init_memory = atoi(benchmark_cmd[2]); in run_benchmark()
328 memflush = atoi(benchmark_cmd[3]); in run_benchmark()
329 operation = atoi(benchmark_cmd[4]); in run_benchmark()
330 sprintf(resctrl_val, "%s", benchmark_cmd[5]); in run_benchmark()
342 ret = execvp(benchmark_cmd[0], benchmark_cmd); in run_benchmark()
Dmbm_test.c117 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd) in mbm_bw_change() argument
134 ret = resctrl_val(benchmark_cmd, &param); in mbm_bw_change()
Dmba_test.c150 int mba_schemata_change(int cpu_no, char *bw_report, char **benchmark_cmd) in mba_schemata_change() argument
166 ret = resctrl_val(benchmark_cmd, &param); in mba_schemata_change()
DREADME48 usage: resctrl_tests [-h] [-b "benchmark_cmd [options]"] [-t test list] [-n no_of_bits]
49 …-b benchmark_cmd [options]: run specified benchmark for MBM, MBA and CMT default benchmark is buil…
Dresctrl_val.c593 int resctrl_val(char **benchmark_cmd, struct resctrl_val_param *param) in resctrl_val() argument
687 value.sival_ptr = benchmark_cmd; in resctrl_val()