Home
last modified time | relevance | path

Searched refs:cpid (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.15/tools/testing/selftests/safesetid/
Dsafesetid-test.c176 pid_t cpid; in test_userns() local
182 cpid = syscall(SYS_clone, clone_flags, NULL); in test_userns()
183 if (cpid == -1) { in test_userns()
188 if (cpid == 0) { /* Code executed by child */ in test_userns()
193 if(snprintf(map_file_name, sz, "/proc/%d/uid_map", cpid) < 0) { in test_userns()
207 pid_t cpid, w; in test_setuid() local
210 cpid = fork(); in test_setuid()
211 if (cpid == -1) { in test_setuid()
215 if (cpid == 0) { /* Code executed by child */ in test_setuid()
224 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); in test_setuid()
/Linux-v5.15/tools/testing/selftests/sched/
Dcs_prctl_test.c112 int cpid; member
161 pid_t cpid; in create_processes() local
170 cpid = clone(child_func_process, child_func_process_stack + STACK_SIZE, in create_processes()
172 proc[i].cpid = cpid; in create_processes()
190 printf(" tid=%d, / tgid=%d / pgid=%d: %lx\n", proc[i].cpid, proc[i].cpid, in disp_processes()
191 getpgid(proc[i].cpid), get_cs_cookie(proc[i].cpid)); in disp_processes()
194 proc[i].cpid, getpgid(0), get_cs_cookie(proc[i].thr_tids[j])); in disp_processes()
277 pid = procs[pidx].cpid; in main()
333 kill(procs[pidx].cpid, 15); in main()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dfexit_sleep.c30 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()
Dns_current_pid_tgid.c63 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-v5.15/tools/testing/selftests/powerpc/ptrace/
Dptrace-perf-hwbreak.c267 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-v5.15/tools/testing/selftests/arm64/mte/
Dcheck_gcr_el1_cswitch.c103 pid_t cpid; in mte_gcr_fork_test() local
113 cpid = getpid(); in mte_gcr_fork_test()
115 res = execute_test(cpid); in mte_gcr_fork_test()
/Linux-v5.15/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.sh192 cpid=$!
194 wait $cpid
Dsimult_flows.sh176 local cpid=$!
178 wait $cpid
Dmptcp_connect.sh463 local cpid=$!
465 wait $cpid
Dmptcp_join.sh325 cpid=$!
437 wait $cpid
/Linux-v5.15/arch/nds32/kernel/
Dtraps.c318 unsigned int cpid = ((itype & ITYPE_mskCPID) >> ITYPE_offCPID); in do_dispatch_general() local
320 if ((cpid == FPU_CPID) && in do_dispatch_general()
/Linux-v5.15/tools/testing/selftests/net/
Dnettest.c1801 static int ipc_parent(int cpid, int fd, struct sock_args *args) in ipc_parent() argument
1823 if (kill(cpid, 0) == 0) in ipc_parent()
1824 kill(cpid, SIGKILL); in ipc_parent()
1904 int cpid; in main() local
2098 cpid = fork(); in main()
2099 if (cpid < 0) { in main()
2103 if (cpid) in main()
2104 return ipc_parent(cpid, fd[0], &args); in main()
/Linux-v5.15/tools/testing/selftests/netfilter/
Dnft_flowtable.sh263 cpid=$!
271 if ps -p $cpid > /dev/null;then
272 kill $cpid
/Linux-v5.15/arch/m68k/math-emu/
Dfp_scan.S69 cmp.b #0xf2,%d0 | cpid = 1
71 cmp.b #0xfc,%d0 | cpid = 6
/Linux-v5.15/arch/m68k/fpsp040/
Dx_fline.S60 cmpib #1,%d1 |check if cpid=1
/Linux-v5.15/arch/mips/kernel/
Dtraps.c1402 unsigned int cpid; in do_cpu() local
1406 cpid = (regs->cp0_cause >> CAUSEB_CE) & 3; in do_cpu()
1408 if (cpid != 2) in do_cpu()
1411 switch (cpid) { in do_cpu()