Home
last modified time | relevance | path

Searched refs:bm_pid (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/tools/testing/selftests/resctrl/
Dcache.c151 static int print_results_cache(char *filename, int bm_pid, in print_results_cache() argument
157 printf("Pid: %d \t LLC_value: %lu\n", bm_pid, in print_results_cache()
166 fprintf(fp, "Pid: %d \t llc_value: %lu\n", bm_pid, llc_value); in print_results_cache()
173 int measure_cache_vals(struct resctrl_val_param *param, int bm_pid) in measure_cache_vals() argument
197 ret = print_results_cache(param->filename, bm_pid, llc_value); in measure_cache_vals()
215 pid_t bm_pid; in cat_val() local
220 bm_pid = getpid(); in cat_val()
223 ret = taskset_benchmark(bm_pid, param->cpu_no); in cat_val()
228 ret = write_bm_pid_to_resctrl(bm_pid, param->ctrlgrp, param->mongrp, in cat_val()
244 ret = reset_enable_llc_perf(bm_pid, param->cpu_no); in cat_val()
[all …]
Dresctrl_val.c467 pid_t bm_pid, ppid; variable
471 kill(bm_pid, SIGKILL); in ctrlc_handler()
527 static int print_results_bw(char *filename, int bm_pid, float bw_imc, in print_results_bw() argument
534 printf("Pid: %d \t Mem_BW_iMC: %f \t ", bm_pid, bw_imc); in print_results_bw()
544 bm_pid, bw_imc, bw_resc, diff) <= 0) { in print_results_bw()
615 ret = print_results_bw(param->filename, bm_pid, bw_imc, bw_resc); in measure_vals()
668 bm_pid = fork(); in resctrl_val()
669 if (bm_pid == -1) { in resctrl_val()
675 if (bm_pid == 0) { in resctrl_val()
707 ksft_print_msg("Benchmark PID: %d\n", bm_pid); in resctrl_val()
[all …]
Dresctrl.h78 extern pid_t bm_pid, ppid;
91 int taskset_benchmark(pid_t bm_pid, int cpu_no);
95 int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp,
118 int measure_cache_vals(struct resctrl_val_param *param, int bm_pid);
Dcat_test.c156 bm_pid = fork(); in cat_perf_miss_val()
161 if (bm_pid == 0) { in cat_perf_miss_val()
172 kill(bm_pid, SIGKILL); in cat_perf_miss_val()
183 if (bm_pid == 0) { in cat_perf_miss_val()
210 kill(bm_pid, SIGKILL); in cat_perf_miss_val()
Dresctrlfs.c278 int taskset_benchmark(pid_t bm_pid, int cpu_no) in taskset_benchmark() argument
285 if (sched_setaffinity(bm_pid, sizeof(cpu_set_t), &my_set)) { in taskset_benchmark()
430 int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp, in write_bm_pid_to_resctrl() argument
447 ret = write_pid_to_tasks(tasks, bm_pid); in write_bm_pid_to_resctrl()
463 ret = write_pid_to_tasks(tasks, bm_pid); in write_bm_pid_to_resctrl()