/openbmc/linux/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 237 pid_t cpid; in test_userns() local 244 if (cpid == -1) { 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() 324 pid_t cpid, w; in test_setgid() local 327 cpid = fork(); in test_setgid() 328 if (cpid == -1) { in test_setgid() 380 pid_t cpid, w; in test_setgroups() local 385 cpid = fork(); in test_setgroups() [all …]
|
/openbmc/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 | 125 pid_t cpid; in test_ns_current_pid_tgid_new_ns() local 130 cpid = clone(fn, child_stack + STACK_SIZE, in test_ns_current_pid_tgid_new_ns() 133 if (!ASSERT_NEQ(cpid, -1, "clone")) in test_ns_current_pid_tgid_new_ns() 136 if (!ASSERT_NEQ(waitpid(cpid, &wstatus, 0), -1, "waitpid")) in test_ns_current_pid_tgid_new_ns()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.sh | 207 local cpid=$! 209 wait $cpid
|
H A D | simult_flows.sh | 188 local cpid=$! 190 wait $cpid
|
H A D | mptcp_connect.sh | 459 local cpid=$! 461 wait $cpid
|
H A D | mptcp_join.sh | 1142 local cpid=$! 1146 wait $cpid
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | nettest.c | 1904 static int ipc_parent(int cpid, int fd, struct sock_args *args) in ipc_parent() argument 1926 if (kill(cpid, 0) == 0) in ipc_parent() 1927 kill(cpid, SIGKILL); in ipc_parent() 2021 int cpid; in main() local 2234 cpid = fork(); in main() 2235 if (cpid < 0) { in main() 2239 if (cpid) in main() 2240 return ipc_parent(cpid, fd[0], &args); in main()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_flowtable.sh | 361 cpid=$! 377 if test -d /proc/"$cpid"/; then 378 kill $cpid 382 wait $cpid
|
/openbmc/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
|
/openbmc/linux/arch/m68k/fpsp040/ |
H A D | x_fline.S | 60 cmpib #1,%d1 |check if cpid=1
|
/openbmc/linux/arch/mips/kernel/ |
H A D | traps.c | 1408 unsigned int cpid; in do_cpu() local 1412 cpid = (regs->cp0_cause >> CAUSEB_CE) & 3; in do_cpu() 1414 if (cpid != 2) in do_cpu() 1417 switch (cpid) { in do_cpu()
|