Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/safesetid/
A Dsafesetid-test.c237 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 …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dexhandler.c22 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()
A 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()
A 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-6.3-rc2/tools/testing/selftests/sched/
A Dcs_prctl_test.c69 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()
350 kill(procs[pidx].cpid, 15); in main()
/linux-6.3-rc2/tools/testing/selftests/powerpc/ptrace/
A Dptrace-perf-hwbreak.c267 int cpid; in test5() local
275 cpid = fork(); in test5()
276 if (!cpid) { in test5()
298 kill(cpid, SIGINT); in test5()
398 int cpid; in test9() local
410 cpid = fork(); in test9()
411 if (!cpid) { in test9()
425 kill(cpid, SIGINT); in test9()
538 int cpid; in test14() local
550 cpid = fork(); in test14()
[all …]
/linux-6.3-rc2/tools/testing/selftests/arm64/mte/
A Dcheck_gcr_el1_cswitch.c92 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.3-rc2/tools/testing/selftests/net/
A Dnettest.c1876 static int ipc_parent(int cpid, int fd, struct sock_args *args) in ipc_parent() argument
1898 if (kill(cpid, 0) == 0) in ipc_parent()
1899 kill(cpid, SIGKILL); in ipc_parent()
1983 int cpid; in main() local
2190 cpid = fork(); in main()
2191 if (cpid < 0) { in main()
2195 if (cpid) in main()
2196 return ipc_parent(cpid, fd[0], &args); in main()
/linux-6.3-rc2/tools/testing/selftests/net/mptcp/
A Dmptcp_sockopt.sh198 local cpid=$!
200 wait $cpid
A Dsimult_flows.sh184 local cpid=$!
186 wait $cpid
A Dmptcp_connect.sh451 local cpid=$!
453 wait $cpid
A Dmptcp_join.sh819 local cpid=$!
984 wait $cpid
/linux-6.3-rc2/tools/testing/selftests/netfilter/
A Dnft_flowtable.sh287 cpid=$!
295 if ps -p $cpid > /dev/null;then
296 kill $cpid
/linux-6.3-rc2/arch/m68k/math-emu/
A Dfp_scan.S69 cmp.b #0xf2,%d0 | cpid = 1
71 cmp.b #0xfc,%d0 | cpid = 6
/linux-6.3-rc2/arch/m68k/fpsp040/
A Dx_fline.S60 cmpib #1,%d1 |check if cpid=1
/linux-6.3-rc2/arch/mips/kernel/
A Dtraps.c1408 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()

Completed in 32 milliseconds