Home
last modified time | relevance | path

Searched refs:getppid (Results 1 - 25 of 49) sorted by relevance

12

/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dtest_kill.c48 int ppid = getppid(); in child_fn()
50 while (getppid() == ppid) in child_fn()
53 return getppid() == ppid; in child_fn()
211 ppid = getppid(); in forkbomb_fn()
213 while (getppid() == ppid) in forkbomb_fn()
216 return getppid() == ppid; in forkbomb_fn()
H A Dtest_freezer.c123 int ppid = getppid(); in child_fn()
125 while (getppid() == ppid) in child_fn()
128 return getppid() == ppid; in child_fn()
347 ppid = getppid(); in forkbomb_fn()
349 while (getppid() == ppid) in forkbomb_fn()
352 return getppid() == ppid; in forkbomb_fn()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_051.cpp40 pid_t ppid = getppid(); in TestThread()
82 g_ppid = getppid(); in Testcase()
H A Dprocess_test_050.cpp38 pid_t ppid = getppid(); in TestThread()
67 g_ppid = getppid(); in Testcase()
H A Dprocess_test_052.cpp41 pid_t ppid = getppid(); in TestThread()
65 g_ppid = getppid(); in Testcase()
/kernel/liteos_a/testsuites/unittest/container/full/
H A DIt_pid_container_020.cpp46 if (getppid() != 1) { in Child()
56 if (getppid() != 1) { in Child()
H A DIt_pid_container_019.cpp72 ret = ChildShell(reinterpret_cast<void *>(getppid())); in ChildFun()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_time_container_003.cpp39 auto linkBuffer = ReadlinkContainer(getppid(), containerType); in childFunc()
46 ret = sprintf_s(targetpath, 100, "/proc/%d/container/time", getppid()); /* 100: test len */ in childFunc()
H A DIt_pid_container_023.cpp43 if (getppid() != 0) { in ChildFunc()
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dtest_freezer.c180 int ppid = getppid(); in child_fn()
182 while (getppid() == ppid) in child_fn()
185 return getppid() == ppid; in child_fn()
404 ppid = getppid(); in forkbomb_fn()
406 while (getppid() == ppid) in forkbomb_fn()
409 return getppid() == ppid; in forkbomb_fn()
/kernel/linux/linux-6.6/tools/testing/selftests/net/af_unix/
H A Dscm_pidfd.c203 if (parent_pid != getppid()) { in cmsg_check()
204 log_err("wrong SCM_PIDFD %d != %d", parent_pid, getppid()); in cmsg_check()
361 if (peer_cred.pid != getppid()) { in FIXTURE_DATA()
362 log_err("peer_cred.pid != getppid(): %d != %d", peer_cred.pid, getppid()); in FIXTURE_DATA()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dmrelease_test.c22 int ppid = getppid(); in alloc_noexit()
44 while (getppid() == ppid && timeout > 0) { in alloc_noexit()
H A Dmemfd_secret.c101 if (process_vm_readv(getppid(), &liov, 1, &riov, 1, 0) < 0) { in try_process_vm_read()
112 pid_t ppid = getppid(); in try_ptrace()
/kernel/linux/linux-5.10/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c168 pid_t ppid = getppid(); in main()
170 if (ppid != getppid()) in main()
/kernel/linux/linux-6.6/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c168 pid_t ppid = getppid(); in main()
170 if (ppid != getppid()) in main()
/kernel/liteos_a/testsuites/unittest/basic/exc/smoke/
H A Dit_test_exc_005.cpp36 printf("@@@@@@@@@@@@@ pid : %d getppid : %d @@@@@@@@@@@@@@@@\n", getpid(), getppid()); in Child()
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c576 pid_t parent = getppid(); in TEST()
584 /* getppid() should succeed and be logged (no check for logging) */ in TEST()
663 pid_t parent = getppid(); in TEST_SIGNAL()
696 pid_t parent = getppid(); in TEST_SIGNAL()
735 pid_t parent = getppid(); in TEST_SIGNAL()
947 pid_t parent = getppid(); in TEST()
965 pid_t parent = getppid(); in TEST()
987 pid_t parent = getppid(); in TEST()
1012 pid_t parent = getppid(); in TEST()
1222 parent = getppid(); in TEST_F()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/security/
H A Dflush_utils.c34 getppid(); in syscall_loop()
/kernel/linux/linux-5.10/tools/perf/bench/
H A Dsyscall.c44 getppid(); in bench_syscall_basic()
51 printf("# Executed %'d getppid() calls\n", loops); in bench_syscall_basic()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/security/
H A Dflush_utils.c36 getppid(); in syscall_loop()
/kernel/liteos_a/testsuites/unittest/extended/signal/full/
H A DIt_ipc_sigaction_001.cpp57 spid = getppid(); in Testcase()
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c591 pid_t parent = getppid(); in TEST()
599 /* getppid() should succeed and be logged (no check for logging) */ in TEST()
678 pid_t parent = getppid(); in TEST_SIGNAL()
711 pid_t parent = getppid(); in TEST_SIGNAL()
750 pid_t parent = getppid(); in TEST_SIGNAL()
962 pid_t parent = getppid(); in TEST()
980 pid_t parent = getppid(); in TEST()
1002 pid_t parent = getppid(); in TEST()
1027 pid_t parent = getppid(); in TEST()
1237 parent = getppid(); in TEST_F()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/benchmarks/
H A Dnull_syscall.c124 getppid(); in do_null_syscall()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dthread-map.c115 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
/kernel/linux/linux-6.6/tools/perf/bench/
H A Dsyscall.c90 getppid(); in bench_syscall_common()
117 name = "getppid()"; in bench_syscall_common()

Completed in 16 milliseconds

12