Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/resctrl/
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 …]
Dresctrl_val.c467 pid_t bm_pid, ppid; variable
471 kill(bm_pid, SIGKILL); in ctrlc_handler()
488 static int print_results_bw(char *filename, int bm_pid, float bw_imc, in print_results_bw() argument
495 printf("Pid: %d \t Mem_BW_iMC: %f \t ", bm_pid, bw_imc); in print_results_bw()
505 bm_pid, bw_imc, bw_resc, diff) <= 0) { in print_results_bw()
576 ret = print_results_bw(param->filename, bm_pid, bw_imc, bw_resc); in measure_vals()
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()
[all …]
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()
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);
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()