/linux-6.1.9/tools/testing/selftests/safesetid/ |
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-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
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()
|
D | fexit_sleep.c | 30 pid_t cpid; in test_fexit_sleep() local 41 cpid = clone(do_sleep, child_stack + STACK_SIZE, CLONE_FILES | SIGCHLD, fexit_skel); in test_fexit_sleep() 42 if (CHECK(cpid == -1, "clone", "%s\n", strerror(errno))) in test_fexit_sleep() 66 kill(cpid, 9); in test_fexit_sleep() 68 if (CHECK(waitpid(cpid, &wstatus, 0) == -1, "waitpid", "%s\n", strerror(errno))) in test_fexit_sleep()
|
D | ns_current_pid_tgid.c | 63 pid_t cpid; in test_ns_current_pid_tgid_new_ns() local 68 cpid = clone(test_current_pid_tgid, child_stack + STACK_SIZE, in test_ns_current_pid_tgid_new_ns() 71 if (CHECK(cpid == -1, "clone", "%s\n", strerror(errno))) in test_ns_current_pid_tgid_new_ns() 74 if (CHECK(waitpid(cpid, &wstatus, 0) == -1, "waitpid", "%s\n", strerror(errno))) in test_ns_current_pid_tgid_new_ns()
|
/linux-6.1.9/tools/testing/selftests/sched/ |
D | cs_prctl_test.c | 68 int cpid; member 97 kill(procs[pidx].cpid, 15); in __handle_error() 171 pid_t cpid; in create_processes() local 180 cpid = clone(child_func_process, child_func_process_stack + STACK_SIZE, in create_processes() 182 proc[i].cpid = cpid; in create_processes() 200 printf(" tid=%d, / tgid=%d / pgid=%d: %lx\n", proc[i].cpid, proc[i].cpid, in disp_processes() 201 getpgid(proc[i].cpid), get_cs_cookie(proc[i].cpid)); in disp_processes() 204 proc[i].cpid, getpgid(0), get_cs_cookie(proc[i].thr_tids[j])); in disp_processes() 285 pid = procs[pidx].cpid; in main() 341 kill(procs[pidx].cpid, 15); in main()
|
/linux-6.1.9/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-perf-hwbreak.c | 267 int cpid; in test5() local 275 cpid = fork(); in test5() 276 if (!cpid) { in test5() 282 perf_fd = perf_thread_event_open(cpid, (__u64)perf_data1, sizeof(*perf_data1)); in test5() 298 kill(cpid, SIGINT); in test5() 398 int cpid; in test9() local 410 cpid = fork(); in test9() 411 if (!cpid) { in test9() 417 perf_fd = perf_thread_event_open(cpid, (__u64)perf_data1, sizeof(*perf_data1)); in test9() 425 kill(cpid, SIGINT); in test9() [all …]
|
/linux-6.1.9/tools/testing/selftests/arm64/mte/ |
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-6.1.9/tools/testing/selftests/net/ |
D | nettest.c | 1836 static int ipc_parent(int cpid, int fd, struct sock_args *args) in ipc_parent() argument 1858 if (kill(cpid, 0) == 0) in ipc_parent() 1859 kill(cpid, SIGKILL); in ipc_parent() 1941 int cpid; in main() local 2141 cpid = fork(); in main() 2142 if (cpid < 0) { in main() 2146 if (cpid) in main() 2147 return ipc_parent(cpid, fd[0], &args); in main()
|
/linux-6.1.9/tools/testing/selftests/net/mptcp/ |
D | mptcp_sockopt.sh | 193 cpid=$! 195 wait $cpid
|
D | simult_flows.sh | 186 local cpid=$! 188 wait $cpid
|
D | mptcp_connect.sh | 452 local cpid=$! 454 wait $cpid
|
D | mptcp_join.sh | 809 local cpid=$! 973 wait $cpid
|
/linux-6.1.9/tools/testing/selftests/netfilter/ |
D | nft_flowtable.sh | 287 cpid=$! 295 if ps -p $cpid > /dev/null;then 296 kill $cpid
|
/linux-6.1.9/arch/m68k/math-emu/ |
D | fp_scan.S | 69 cmp.b #0xf2,%d0 | cpid = 1 71 cmp.b #0xfc,%d0 | cpid = 6
|
/linux-6.1.9/arch/m68k/fpsp040/ |
D | x_fline.S | 60 cmpib #1,%d1 |check if cpid=1
|
/linux-6.1.9/arch/mips/kernel/ |
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()
|