Lines Matching defs:pid
404 static int write_pid_to_tasks(char *tasks, pid_t pid)
414 if (fprintf(fp, "%d\n", pid) < 0) {
415 perror("Failed to wr pid to tasks file");
432 * If a con_mon grp is requested, create it and write pid to it, otherwise
433 * write pid to root con_mon grp.
434 * If a mon grp is requested, create it and write pid to it, otherwise
435 * pid is not written, this means that pid is in con_mon grp and hence
452 /* Create control and monitoring group and write pid into it */
461 /* Create mon grp and write pid into it for "mbm" and "cqm" test */
648 pid_t pid;
656 pid = fork();
657 if (pid == 0) {
668 kill(pid, SIGTERM);
680 waitpid(pid, NULL, 0);
703 int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu,
708 ret = syscall(__NR_perf_event_open, hw_event, pid, cpu,