/linux-6.12.1/tools/testing/selftests/resctrl/ |
D | cache.c | 104 static int print_results_cache(const char *filename, pid_t bm_pid, __u64 llc_value) in print_results_cache() argument 109 printf("Pid: %d \t LLC_value: %llu\n", (int)bm_pid, llc_value); in print_results_cache() 117 fprintf(fp, "Pid: %d \t llc_value: %llu\n", (int)bm_pid, llc_value); in print_results_cache() 136 const char *filename, pid_t bm_pid) in perf_event_measure() argument 151 return print_results_cache(filename, bm_pid, pe_read->values[0].value); in perf_event_measure() 164 int measure_llc_resctrl(const char *filename, pid_t bm_pid) in measure_llc_resctrl() argument 173 return print_results_cache(filename, bm_pid, llc_occu_resc); in measure_llc_resctrl()
|
D | resctrl_val.c | 451 static pid_t bm_pid, ppid; variable 456 if (bm_pid) in ctrlc_handler() 457 kill(bm_pid, SIGKILL); in ctrlc_handler() 475 bm_pid = 0; in signal_handler_register() 525 static int print_results_bw(char *filename, pid_t bm_pid, float bw_imc, in print_results_bw() argument 532 printf("Pid: %d \t Mem_BW_iMC: %f \t ", (int)bm_pid, bw_imc); in print_results_bw() 542 (int)bm_pid, bw_imc, bw_resc, diff) <= 0) { in print_results_bw() 567 struct resctrl_val_param *param, pid_t bm_pid, in measure_mem_bw() argument 608 return print_results_bw(param->filename, bm_pid, bw_imc, bw_resc); in measure_mem_bw() 719 bm_pid = fork(); in resctrl_val() [all …]
|
D | resctrl.h | 104 pid_t bm_pid); 135 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity); 136 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity); 139 int write_bm_pid_to_resctrl(pid_t bm_pid, const char *ctrlgrp, const char *mongrp); 148 struct resctrl_val_param *param, pid_t bm_pid, 172 const char *filename, pid_t bm_pid); 173 int measure_llc_resctrl(const char *filename, pid_t bm_pid);
|
D | cat_test.c | 167 pid_t bm_pid; in cat_test() local 172 bm_pid = getpid(); in cat_test() 175 ret = taskset_benchmark(bm_pid, uparams->cpu, &old_affinity); in cat_test() 180 ret = write_bm_pid_to_resctrl(bm_pid, param->ctrlgrp, param->mongrp); in cat_test() 186 pe_fd = perf_open(&pea, bm_pid, uparams->cpu); in cat_test() 218 ret = perf_event_measure(pe_fd, &pe_read, param->filename, bm_pid); in cat_test() 230 taskset_restore(bm_pid, &old_affinity); in cat_test()
|
D | resctrlfs.c | 411 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity) in taskset_benchmark() argument 417 if (sched_getaffinity(bm_pid, sizeof(*old_affinity), in taskset_benchmark() 427 if (sched_setaffinity(bm_pid, sizeof(cpu_set_t), &my_set)) { in taskset_benchmark() 443 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity) in taskset_restore() argument 445 if (sched_setaffinity(bm_pid, sizeof(*old_affinity), old_affinity)) { in taskset_restore() 534 int write_bm_pid_to_resctrl(pid_t bm_pid, const char *ctrlgrp, const char *mongrp) in write_bm_pid_to_resctrl() argument 550 ret = write_pid_to_tasks(tasks, bm_pid); in write_bm_pid_to_resctrl() 564 ret = write_pid_to_tasks(tasks, bm_pid); in write_bm_pid_to_resctrl()
|
D | mbm_test.c | 122 struct resctrl_val_param *param, pid_t bm_pid) in mbm_measure() argument 124 return measure_mem_bw(uparams, param, bm_pid, "reads"); in mbm_measure()
|
D | mba_test.c | 68 struct resctrl_val_param *param, pid_t bm_pid) in mba_measure() argument 70 return measure_mem_bw(uparams, param, bm_pid, "reads"); in mba_measure()
|
D | cmt_test.c | 44 struct resctrl_val_param *param, pid_t bm_pid) in cmt_measure() argument 47 return measure_llc_resctrl(param->filename, bm_pid); in cmt_measure()
|