Lines Matching defs:pid
501 static int write_pid_to_tasks(char *tasks, pid_t pid)
511 if (fprintf(fp, "%d\n", pid) < 0) {
512 ksft_print_msg("Failed to write pid to tasks file\n");
529 * If a con_mon grp is requested, create it and write pid to it, otherwise
530 * write pid to root con_mon grp.
531 * If a mon grp is requested, create it and write pid to it, otherwise
532 * pid is not written, this means that pid is in con_mon grp and hence
549 /* Create control and monitoring group and write pid into it */
558 /* Create mon grp and write pid into it for "mbm" and "cmt" test */
802 pid_t pid;
811 pid = fork();
812 if (pid == 0) {
823 kill(pid, SIGTERM);
835 waitpid(pid, NULL, 0);
858 int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu,
863 ret = syscall(__NR_perf_event_open, hw_event, pid, cpu,