/linux/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 237 pid_t cpid; in test_userns() local 243 cpid = syscall(SYS_clone, clone_flags, NULL); in test_userns() 244 if (cpid == -1) { in test_userns() 249 if (cpid == 0) { /* Code executed by child */ in test_userns() 254 if(snprintf(map_file_name, sz, "/proc/%d/uid_map", cpid) < 0) { in test_userns() 268 pid_t cpid, w; in test_setuid() local 271 cpid = fork(); in test_setuid() 272 if (cpid == -1) { in test_setuid() 276 if (cpid == 0) { /* Code executed by child */ in test_setuid() 285 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); in test_setuid() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | exhandler.c | 22 pid_t cpid; in test_exhandler() local 33 cpid = fork(); in test_exhandler() 34 if (!ASSERT_GT(cpid, -1, "fork failed")) in test_exhandler() 36 if (cpid == 0) in test_exhandler() 38 waitpid(cpid, &status, 0); in test_exhandler()
|
H A D | fexit_sleep.c | 29 pid_t cpid; in test_fexit_sleep() local 46 cpid = clone(do_sleep, child_stack + STACK_SIZE, CLONE_FILES | SIGCHLD, fexit_skel); in test_fexit_sleep() 47 if (CHECK(cpid == -1, "clone", "%s\n", strerror(errno))) in test_fexit_sleep() 71 kill(cpid, 9); in test_fexit_sleep() 73 if (CHECK(waitpid(cpid, &wstatus, 0) == -1, "waitpid", "%s\n", strerror(errno))) in test_fexit_sleep()
|
H A D | ns_current_pid_tgid.c | 185 pid_t cpid; in test_ns_current_pid_tgid_new_ns() local 190 cpid = clone(fn, child_stack + STACK_SIZE, in test_ns_current_pid_tgid_new_ns() 193 if (!ASSERT_NEQ(cpid, -1, "clone")) in test_ns_current_pid_tgid_new_ns() 196 if (!ASSERT_NEQ(waitpid(cpid, &wstatus, 0), -1, "waitpid")) in test_ns_current_pid_tgid_new_ns()
|
/linux/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 69 int cpid; member 98 kill(procs[pidx].cpid, 15); in __handle_error() 177 pid_t cpid; in create_processes() local 186 cpid = clone(child_func_process, child_func_process_stack + STACK_SIZE, in create_processes() 188 proc[i].cpid = cpid; in create_processes() 209 printf(" tid=%d, / tgid=%d / pgid=%d: %lx\n", proc[i].cpid, proc[i].cpid, in disp_processes() 210 getpgid(proc[i].cpid), get_cs_cookie(proc[i].cpid)); in disp_processes() 213 proc[i].cpid, getpgid(0), get_cs_cookie(proc[i].thr_tids[j])); in disp_processes() 294 pid = procs[pidx].cpid; in main() 356 kill(procs[pidx].cpid, 15); in main()
|
/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_gcr_el1_cswitch.c | 92 pid_t cpid; in mte_gcr_fork_test() local 102 cpid = getpid(); in mte_gcr_fork_test() 104 res = execute_test(cpid); in mte_gcr_fork_test()
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.sh | 185 local cpid=$! 187 wait $cpid
|
H A D | simult_flows.sh | 170 local cpid=$! 172 wait $cpid
|
H A D | mptcp_connect.sh | 420 local cpid=$! 422 wait $cpid
|
H A D | mptcp_join.sh | 1023 local cpid=$! 1028 wait $cpid
|
/linux/tools/testing/selftests/net/ |
H A D | nettest.c | 1905 static int ipc_parent(int cpid, int fd, struct sock_args *args) in ipc_parent() argument 1927 if (kill(cpid, 0) == 0) in ipc_parent() 1928 kill(cpid, SIGKILL); in ipc_parent() 2022 int cpid; in main() local 2235 cpid = fork(); in main() 2236 if (cpid < 0) { in main() 2240 if (cpid) in main() 2241 return ipc_parent(cpid, fd[0], &args); in main()
|
/linux/arch/m68k/math-emu/ |
H A D | fp_scan.S | 69 cmp.b #0xf2,%d0 | cpid = 1 71 cmp.b #0xfc,%d0 | cpid = 6
|
/linux/arch/m68k/fpsp040/ |
H A D | x_fline.S | 60 cmpib #1,%d1 |check if cpid=1
|
/linux/arch/mips/kernel/ |
H A D | traps.c | 1409 unsigned int cpid; in do_cpu() local 1413 cpid = (regs->cp0_cause >> CAUSEB_CE) & 3; in do_cpu() 1415 if (cpid != 2) in do_cpu() 1418 switch (cpid) { in do_cpu()
|