Lines Matching refs:bm_pid
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()
720 if (bm_pid == -1) { in resctrl_val()
726 if (bm_pid == 0) { in resctrl_val()
761 ksft_print_msg("Benchmark PID: %d\n", (int)bm_pid); in resctrl_val()
772 ret = taskset_benchmark(bm_pid, uparams->cpu, NULL); in resctrl_val()
777 ret = write_bm_pid_to_resctrl(bm_pid, param->ctrlgrp, param->mongrp); in resctrl_val()
800 if (sigqueue(bm_pid, SIGUSR1, value) == -1) { in resctrl_val()
819 ret = param->measure(uparams, param, bm_pid); in resctrl_val()
825 kill(bm_pid, SIGKILL); in resctrl_val()