Lines Matching refs:pid
112 static unsigned long get_cs_cookie(int pid) in get_cs_cookie() argument
117 ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID, in get_cs_cookie()
239 int pid; in main() local
294 pid = procs[pidx].cpid; in main()
296 validate(get_cs_cookie(0) == get_cs_cookie(pid)); in main()
299 printf("\n## Set a new cookie on entire process/TGID [%d]\n", pid); in main()
300 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, pid, PIDTYPE_TGID, 0) < 0) in main()
304 validate(get_cs_cookie(0) != get_cs_cookie(pid)); in main()
305 validate(get_cs_cookie(pid) != 0); in main()
306 validate(get_cs_cookie(pid) == get_cs_cookie(procs[pidx].thr_tids[0])); in main()
309 getpid(), pid); in main()
310 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, pid, PIDTYPE_PID, 0) < 0) in main()
314 validate(get_cs_cookie(0) == get_cs_cookie(pid)); in main()
315 validate(get_cs_cookie(pid) != 0); in main()
316 validate(get_cs_cookie(pid) != get_cs_cookie(procs[pidx].thr_tids[0])); in main()
326 validate(get_cs_cookie(pid) != get_cs_cookie(procs[pidx].thr_tids[0])); in main()
333 validate(get_cs_cookie(0) == get_cs_cookie(pid)); in main()
334 validate(get_cs_cookie(pid) != 0); in main()
335 validate(get_cs_cookie(pid) == get_cs_cookie(procs[pidx].thr_tids[0])); in main()