| /linux/tools/testing/selftests/arm64/abi/ |
| H A D | tpidr2.c | 43 set_tpidr2(getpid()); in write_read() 45 return getpid() == get_tpidr2(); in write_read() 51 set_tpidr2(getpid()); in write_sleep_read() 55 return getpid() == get_tpidr2(); in write_sleep_read() 68 set_tpidr2(getpid()); in write_fork_read() 70 oldpid = getpid(); in write_fork_read() 80 set_tpidr2(getpid()); in write_fork_read() 81 if (get_tpidr2() == getpid()) { in write_fork_read() 113 if (getpid() != get_tpidr2()) { in write_fork_read() 148 parent = getpid(); in write_clone_read() [all...] |
| /linux/tools/testing/selftests/kselftest_harness/ |
| H A D | harness-selftest.c | 38 kill(getpid(), SIGUSR1); in TEST_SIGNAL() 45 kill(getpid(), SIGUSR1); in TEST_SIGNAL() 54 self->testpid = getpid(); in FIXTURE_SETUP() 58 TH_LOG("teardown same-process=%d", self->testpid == getpid()); in FIXTURE_TEARDOWN() 88 self->testpid = getpid(); in FIXTURE_SETUP() 92 TH_LOG("teardown same-process=%d", self->testpid == getpid()); in FIXTURE_TEARDOWN_PARENT() 107 self->testpid = getpid(); in FIXTURE_SETUP() 112 TH_LOG("teardown same-process=%d", self->testpid == getpid()); in FIXTURE_TEARDOWN()
|
| /linux/tools/testing/selftests/clone3/ |
| H A D | clone3_cap_checkpoint_restore.c | 56 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid() 58 if (set_tid[0] != getpid()) in call_clone3_set_tid() 63 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid() 81 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid() 83 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid() 137 TH_LOG("Child has PID %d", getpid()); in TEST()
|
| H A D | clone3_set_tid.c | 67 getpid(), set_tid[0]); in call_clone3_set_tid() 70 getpid()); in call_clone3_set_tid() 91 if (set_tid[0] != getpid()) in call_clone3_set_tid() 98 getpid(), pid); in call_clone3_set_tid() 129 getpid(), set_tid[0], flags); in test_clone3_set_tid() 134 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid() 272 ksft_print_msg("Child has PID %d\n", getpid()); in main() 325 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main() 361 ksft_print_msg("[%d] Child is ready and waiting\n", getpid()); in main()
|
| H A D | clone3.c | 90 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3() 95 getpid(), pid); in call_clone3() 119 getpid(), flags, size); in test_clone3() 122 getpid(), ret, expected); in test_clone3() 126 getpid(), ret, expected); in test_clone3()
|
| /linux/tools/perf/tests/ |
| H A D | thread-map.c | 30 map = thread_map__new_by_pid(getpid()); in test__thread_map() 37 perf_thread_map__pid(map, 0) == getpid()); in test__thread_map() 71 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event() 79 perf_thread_map__pid(threads, 0) == getpid()); in process_event() 97 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize() 115 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
|
| H A D | keep-tracking.c | 46 (pid_t)event->comm.pid == getpid() && in find_comm() 47 (pid_t)event->comm.tid == getpid() && in find_comm() 81 threads = thread_map__new_by_tid(getpid()); in test__keep_tracking()
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | task_storage_map.c | |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | task_fd_query_rawtp.c | 24 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp() 38 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp() 50 err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, in test_task_fd_query_rawtp() 62 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
|
| H A D | kprobe_multi_test.c | 57 skel->bss->pid = getpid(); in test_skel_api() 77 skel->bss->pid = getpid(); in test_link_api() 153 skel->bss->pid = getpid(); in test_attach_api() 246 skel->bss->pid = getpid(); in test_attach_api_fails() 404 skel->bss->pid = getpid(); in test_session_skel_api() 445 skel->bss->pid = getpid(); in test_session_cookie_skel_api() 476 skel->bss->pid = getpid(); in test_unique_match() 614 skel->bss->pid = getpid(); in test_override() 686 skel->bss->pid = getpid(); in test_attach_probe_dup_sym()
|
| H A D | task_local_storage.c | 103 task_fd = sys_pidfd_open(getpid(), 0); in test_recursion() 116 skel->bss->test_pid = getpid(); in test_recursion() 193 err = sched_getaffinity(getpid(), sizeof(old), &old); in test_nodeadlock() 196 err = sched_setaffinity(getpid(), sizeof(new), &new); in test_nodeadlock() 242 sched_setaffinity(getpid(), sizeof(old), &old); 390 task_fd = sys_pidfd_open(getpid(), 0); in test_uptr_across_pages() 428 task_fd = sys_pidfd_open(getpid(), 0); in test_uptr_update_failure()
|
| H A D | test_local_storage.c | 38 skel->bss->monitored_pid = getpid(); in run_self_unlink() 107 task_fd = sys_pidfd_open(getpid(), 0); in test_test_local_storage() 142 skel->bss->monitored_pid = getpid(); in test_test_local_storage()
|
| H A D | tracing_multi.c | 190 skel->bss->pid = getpid(); in test_skel_api() 210 skel->bss->pid = getpid(); in test_link_api_pattern() 249 skel->bss->pid = getpid(); in test_link_api_ids() 300 skel->bss->pid = getpid(); in test_module_skel_api() 322 skel->bss->pid = getpid(); in test_module_link_api_pattern() 353 skel->bss->pid = getpid(); in test_module_link_api_ids() 445 skel->bss->pid = getpid(); in test_intersect() 479 skel->bss->pid = getpid(); in test_fentry_after_multi() 540 skel->bss->pid = getpid(); in test_session() 834 skel->bss->pid = getpid(); in test_rollback_put() [all …]
|
| H A D | task_under_cgroup.c | 25 skel->rodata->local_pid = getpid(); in test_task_under_cgroup() 26 skel->bss->remote_pid = getpid(); in test_task_under_cgroup()
|
| H A D | iters.c | 119 skel->bss->target_pid = getpid(); in subtest_task_vma_iters() 183 skel->bss->target_pid = getpid(); in subtest_task_iters() 226 skel->bss->target_pid = getpid(); in subtest_css_task_iters() 276 skel->bss->target_pid = getpid(); in subtest_css_iters()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_test.c | 437 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 443 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 482 ksft_print_msg("Child (pidfd): starting. pid %d tid %ld\n", getpid(), in child_poll_exec_test() 502 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec() 536 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 538 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 547 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test() 575 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
|
| H A D | pidfd_wait.c | 101 kill(getpid(), SIGSTOP); in TEST() 104 kill(getpid(), SIGSTOP); in TEST() 158 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST() 174 kill(getpid(), SIGSTOP); in TEST()
|
| /linux/tools/testing/selftests/powerpc/signal/ |
| H A D | sigreturn_vdso.c | 89 kill(getpid(), SIGUSR1); in test_sigreturn_vdso() 101 kill(getpid(), SIGUSR1); in test_sigreturn_vdso() 117 kill(getpid(), SIGUSR1); in test_sigreturn_vdso()
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | scm_pidfd.c | 391 snprintf(addr->sock_name, sizeof(addr->sock_name), "scm_pidfd_%d", getpid()); in fill_sockaddr() 583 .pid = getpid(), in send_ids_thread() 606 .pid = getpid(), in send_ids_creds_thread() 610 .pid = getpid(), in send_ids_creds_thread() 943 .pid = getpid(), in leader_flow() 981 ASSERT_EQ(getpid(), gettid()); in TEST() 987 EXPECT_EQ(getpid(), msg.tgid_info.pid); in TEST() 988 EXPECT_EQ(getpid(), msg.tgid_info.tgid); in TEST() 996 ASSERT_EQ(getpid(), gettid()); in TEST() 1002 EXPECT_EQ(getpid(), msg.tgid_info.pid); in TEST() [all …]
|
| /linux/tools/testing/selftests/rlimits/ |
| H A D | rlimits-per-userns.c | 32 pid_t pid = getpid(); in setrlimit_nproc() 54 pid = getpid(); in fork_child() 99 pid = getpid(); in main()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | audit_test.c | 109 self->audit_fd, getpid(), in TEST_F() 176 if (getpid() == gettid()) { in thread_audit_test() 244 EXPECT_EQ(getpid(), gettid()); in TEST_F() 259 EXPECT_EQ(0, matches_log_domain_allocated(self->audit_fd, getpid(), in TEST_F() 326 EXPECT_EQ(0, matches_log_signal(_metadata, self->audit_fd, getpid(), in FIXTURE_SETUP() 360 getpid(), NULL)); in TEST_F() 729 self->audit_fd, getpid(), 945 getpid(), NULL)); 963 getpid(), NULL)); 992 getpid(), NUL [all...] |
| /linux/tools/include/nolibc/ |
| H A D | arch-sparc.h | 175 static pid_t getpid(void); 182 parent = getpid(); in sys_fork() 198 parent = getpid(); in sys_vfork()
|
| /linux/tools/testing/selftests/sched/ |
| H A D | cs_prctl_test.c | 205 printf("tid=%d, / tgid=%d / pgid=%d: %lx\n", gettid(), getpid(), getpgid(0), in disp_processes() 206 get_cs_cookie(getpid())); in disp_processes() 309 getpid(), pid); in main() 319 procs[pidx].thr_tids[0], getpid()); in main() 328 printf("\n## Copy cookie from current [%d] to current as pidtype PGID\n", getpid()); in main()
|
| /linux/tools/power/cpupower/utils/idle_monitor/ |
| H A D | cpupower-monitor.h | 87 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu() 90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | protection_keys.c | 324 dprintf2("[%d] SIGCHLD: %d\n", getpid(), x); in signal_handler() 366 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); in signal_handler() 1018 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); in test_write_of_access_disabled_region_with_page_already_mapped() 1217 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in arch_force_pkey_reg_init() 1222 dprintf1("[%d] attach ret: %ld %d\n", getpid(), ret, __LINE__); in arch_force_pkey_reg_init() 1393 dprintf3("[%d] fork() ret: %d\n", getpid(), child); in get_pointer_to_instructions() 1419 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_executing_on_unreadable_memory() 1451 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_implicit_mprotect_exec_only_memory() 1478 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_implicit_mprotect_exec_only_memory() 1490 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), chil in test_ptrace_modifies_pkru() [all...] |