/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/ |
H A D | test_kill.c | 48 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 D | test_freezer.c | 123 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 D | process_test_051.cpp | 40 pid_t ppid = getppid(); in TestThread() 82 g_ppid = getppid(); in Testcase()
|
H A D | process_test_050.cpp | 38 pid_t ppid = getppid(); in TestThread() 67 g_ppid = getppid(); in Testcase()
|
H A D | process_test_052.cpp | 41 pid_t ppid = getppid(); in TestThread() 65 g_ppid = getppid(); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_020.cpp | 46 if (getppid() != 1) { in Child() 56 if (getppid() != 1) { in Child()
|
H A D | It_pid_container_019.cpp | 72 ret = ChildShell(reinterpret_cast<void *>(getppid())); in ChildFun()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_time_container_003.cpp | 39 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 D | It_pid_container_023.cpp | 43 if (getppid() != 0) { in ChildFunc()
|
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
H A D | test_freezer.c | 180 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 D | scm_pidfd.c | 203 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 D | mrelease_test.c | 22 int ppid = getppid(); in alloc_noexit() 44 while (getppid() == ppid && timeout > 0) { in alloc_noexit()
|
H A D | memfd_secret.c | 101 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 D | peeksiginfo.c | 168 pid_t ppid = getppid(); in main() 170 if (ppid != getppid()) in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 168 pid_t ppid = getppid(); in main() 170 if (ppid != getppid()) in main()
|
/kernel/liteos_a/testsuites/unittest/basic/exc/smoke/ |
H A D | it_test_exc_005.cpp | 36 printf("@@@@@@@@@@@@@ pid : %d getppid : %d @@@@@@@@@@@@@@@@\n", getpid(), getppid()); in Child()
|
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 576 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 D | flush_utils.c | 34 getppid(); in syscall_loop()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A D | syscall.c | 44 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 D | flush_utils.c | 36 getppid(); in syscall_loop()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
H A D | It_ipc_sigaction_001.cpp | 57 spid = getppid(); in Testcase()
|
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 591 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 D | null_syscall.c | 124 getppid(); in do_null_syscall()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | thread-map.c | 115 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A D | syscall.c | 90 getppid(); in bench_syscall_common() 117 name = "getppid()"; in bench_syscall_common()
|