Home
last modified time | relevance | path

Searched refs:getppid (Results 1 – 25 of 62) sorted by relevance

123

/linux-6.15/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()
H A Dtest_memcontrol.c313 int ppid = getppid(); in alloc_pagecache_50M_noexit()
318 while (getppid() == ppid) in alloc_pagecache_50M_noexit()
326 int ppid = getppid(); in alloc_anon_noexit()
339 while (getppid() == ppid) in alloc_anon_noexit()
H A Dtest_core.c52 int ppid = getppid(); in alloc_and_touch_anon_noexit()
66 while (getppid() == ppid) in alloc_and_touch_anon_noexit()
/linux-6.15/tools/testing/selftests/landlock/
H A Dwait-pipe-sandbox.c67 if (!kill(getppid(), 0)) { in main()
90 if (!kill(getppid(), 0)) { in main()
125 if (!kill(getppid(), 0)) { in main()
H A Daudit_test.c102 EXPECT_EQ(-1, kill(getppid(), 0)); in TEST_F()
106 getppid(), &denial_dom)); in TEST_F()
231 child_data.parent_pid = getppid(); in TEST_F()
377 EXPECT_EQ(-1, kill(getppid(), 0)); in TEST_F()
384 getppid(), self->domain_id)); in TEST_F()
391 getppid(), self->domain_id)); in TEST_F()
403 EXPECT_EQ(-1, kill(getppid(), 0)); in TEST_F()
/linux-6.15/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()
360 if (peer_cred.pid != getppid()) { in client()
361 log_err("peer_cred.pid != getppid(): %d != %d", peer_cred.pid, getppid()); in client()
/linux-6.15/tools/testing/selftests/mm/
H A Dmrelease_test.c22 int ppid = getppid(); in alloc_noexit()
40 while (getppid() == ppid && timeout > 0) { in alloc_noexit()
H A Dmigration.c167 if (getppid() == 1)
233 if (getppid() == 1)
293 if (getppid() == 1)
H A Dmemfd_secret.c141 if (process_vm_readv(getppid(), &liov, 1, &riov, 1, 0) < 0) { in try_process_vm_read()
152 pid_t ppid = getppid(); in try_ptrace()
/linux-6.15/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c168 pid_t ppid = getppid(); in main()
170 if (ppid != getppid()) in main()
/linux-6.15/tools/testing/selftests/powerpc/security/
H A Dflush_utils.c36 getppid(); in syscall_loop()
/linux-6.15/tools/perf/bench/
H A Dsyscall.c101 getppid(); in bench_syscall_common()
/linux-6.15/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c1250 parent = getppid(); in TEST_F()
1276 parent = getppid(); in TEST_F_SIGNAL()
1305 parent = getppid(); in TEST_F_SIGNAL()
1332 parent = getppid(); in TEST_F_SIGNAL()
1357 parent = getppid(); in TEST_F_SIGNAL()
1382 parent = getppid(); in TEST_F()
1404 parent = getppid(); in TEST_F()
1426 parent = getppid(); in TEST_F()
1447 parent = getppid(); in TEST_F()
1469 parent = getppid(); in TEST_F()
[all …]
/linux-6.15/tools/perf/tests/
H A Dthread-map.c116 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
H A Dmmap-basic.c41 pid_t (*syscalls[])(void) = { (void *)getsid, getppid, (void*)getpgid }; in test__basic_mmap()
/linux-6.15/tools/testing/selftests/pidfd/
H A Dpidfd_open_test.c169 if (info.ppid != getppid()) { in main()
/linux-6.15/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage_rcu_tasks_trace.c150 if (getppid() != runner_pid) { in local_storage_tasks_trace_setup()
/linux-6.15/tools/power/x86/intel-speed-select/
H A Disst-daemon.c155 if (getppid() == 1)
/linux-6.15/arch/um/os-Linux/
H A Dstart_up.c35 int pid = os_getpid(), ppid = getppid(); in ptrace_child()
/linux-6.15/tools/testing/selftests/proc/
H A Dproc-empty-vm.c473 kill(getppid(), SIGTERM); in main()
/linux-6.15/tools/testing/selftests/uevent/
H A Duevent_filtering.c228 ppid = getppid(); in set_death_signal()
/linux-6.15/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c46 format_cgroup_path_pid(buf, path, getppid())
/linux-6.15/Documentation/staging/
H A Dstatic-keys.rst211 As an example, let's add the following branch to 'getppid()', such that the
214 SYSCALL_DEFINE0(getppid)
/linux-6.15/tools/perf/Documentation/
H A Dperf-bench.txt169 This uses a single thread simply doing getppid(2), which is a simple syscall where the result is not

123