Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/resctrl/
A Dcache.c155 static int print_results_cache(char *filename, int bm_pid, in print_results_cache() argument
161 printf("Pid: %d \t LLC_value: %lu\n", bm_pid, in print_results_cache()
170 fprintf(fp, "Pid: %d \t llc_value: %lu\n", bm_pid, llc_value); in print_results_cache()
177 int measure_cache_vals(struct resctrl_val_param *param, int bm_pid) in measure_cache_vals() argument
201 ret = print_results_cache(param->filename, bm_pid, llc_value); in measure_cache_vals()
219 pid_t bm_pid; in cat_val() local
224 bm_pid = getpid(); in cat_val()
227 ret = taskset_benchmark(bm_pid, param->cpu_no); in cat_val()
232 ret = write_bm_pid_to_resctrl(bm_pid, param->ctrlgrp, param->mongrp, in cat_val()
251 ret = reset_enable_llc_perf(bm_pid, param->cpu_no); in cat_val()
[all …]
A Dresctrl_val.c467 pid_t bm_pid, ppid; variable
471 kill(bm_pid, SIGKILL); in ctrlc_handler()
505 bm_pid, bw_imc, bw_resc, diff) <= 0) { in print_results_bw()
632 bm_pid = fork(); in resctrl_val()
633 if (bm_pid == -1) { in resctrl_val()
639 if (bm_pid == 0) { in resctrl_val()
671 ksft_print_msg("Benchmark PID: %d\n", bm_pid); in resctrl_val()
690 ret = taskset_benchmark(bm_pid, param->cpu_no); in resctrl_val()
725 if (sigqueue(bm_pid, SIGUSR1, value) == -1) { in resctrl_val()
754 ret = measure_cache_vals(param, bm_pid); in resctrl_val()
[all …]
A Dcat_test.c106 pid_t bm_pid; in cat_perf_miss_val() local
170 bm_pid = fork(); in cat_perf_miss_val()
175 if (bm_pid == 0) { in cat_perf_miss_val()
195 if (bm_pid == 0) { in cat_perf_miss_val()
221 kill(bm_pid, SIGKILL); in cat_perf_miss_val()
225 if (bm_pid) in cat_perf_miss_val()
A Dresctrl.h75 extern pid_t bm_pid, ppid;
88 int taskset_benchmark(pid_t bm_pid, int cpu_no);
92 int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp,
114 int measure_cache_vals(struct resctrl_val_param *param, int bm_pid);
A Dresctrlfs.c281 int taskset_benchmark(pid_t bm_pid, int cpu_no) in taskset_benchmark() argument
288 if (sched_setaffinity(bm_pid, sizeof(cpu_set_t), &my_set)) { in taskset_benchmark()
435 int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp, in write_bm_pid_to_resctrl() argument
452 ret = write_pid_to_tasks(tasks, bm_pid); in write_bm_pid_to_resctrl()
468 ret = write_pid_to_tasks(tasks, bm_pid); in write_bm_pid_to_resctrl()

Completed in 11 milliseconds