/linux-6.3-rc2/tools/testing/selftests/arm64/abi/ |
A D | tpidr2.c | 76 set_tpidr2(getpid()); in write_read() 78 return getpid() == get_tpidr2(); in write_read() 84 set_tpidr2(getpid()); in write_sleep_read() 88 return getpid() == get_tpidr2(); in write_sleep_read() 101 set_tpidr2(getpid()); in write_fork_read() 103 oldpid = getpid(); in write_fork_read() 114 set_tpidr2(getpid()); in write_fork_read() 115 if (get_tpidr2() == getpid()) { in write_fork_read() 150 if (getpid() != get_tpidr2()) { in write_fork_read() 183 parent = getpid(); in write_clone_read() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/clone3/ |
A D | clone3_set_tid.c | 69 getpid(), set_tid[0]); in call_clone3_set_tid() 72 getpid()); in call_clone3_set_tid() 93 if (set_tid[0] != getpid()) in call_clone3_set_tid() 100 getpid(), pid); in call_clone3_set_tid() 130 getpid(), set_tid[0], flags); in test_clone3_set_tid() 135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid() 139 getpid(), ret, expected); in test_clone3_set_tid() 143 getpid(), ret, expected); in test_clone3_set_tid() 259 ksft_print_msg("Child has PID %d\n", getpid()); in main() 306 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main() [all …]
|
A D | clone3_cap_checkpoint_restore.c | 63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid() 65 if (set_tid[0] != getpid()) in call_clone3_set_tid() 70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid() 88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid() 90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid() 155 TH_LOG("Child has PID %d", getpid()); in TEST()
|
A D | clone3.c | 89 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3() 94 getpid(), pid); in call_clone3() 113 getpid(), flags, size); in test_clone3() 116 getpid(), ret, expected); in test_clone3() 120 getpid(), ret, expected); in test_clone3() 124 getpid(), ret, expected); in test_clone3()
|
/linux-6.3-rc2/tools/perf/tests/ |
A D | thread-map.c | 31 map = thread_map__new_by_pid(getpid()); in test__thread_map() 38 perf_thread_map__pid(map, 0) == getpid()); in test__thread_map() 72 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event() 80 perf_thread_map__pid(threads, 0) == getpid()); in process_event() 98 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize() 116 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
|
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(-1, getpid(), UINT_MAX); in test__keep_tracking()
|
A D | dwarf-unwind.c | 51 pid_t pid = getpid(); in init_live_machine() 228 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
|
A D | perf-time-to-tsc.c | 93 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc() 157 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 158 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/map_tests/ |
A D | task_storage_map.c | 88 sched_getaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup() 93 sched_setaffinity(getpid(), sizeof(new), &new); in test_task_storage_map_stress_lookup() 97 ctx.pid_fd = sys_pidfd_open(getpid(), 0); in test_task_storage_map_stress_lookup() 113 skel->bss->pid = getpid(); in test_task_storage_map_stress_lookup() 125 sched_setaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
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()
|
A D | task_local_storage.c | 88 task_fd = sys_pidfd_open(getpid(), 0); in test_recursion() 101 skel->bss->test_pid = getpid(); in test_recursion() 184 err = sched_getaffinity(getpid(), sizeof(old), &old); in test_nodeadlock() 187 err = sched_setaffinity(getpid(), sizeof(new), &new); in test_nodeadlock() 233 sched_setaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
|
A D | bpf_iter.c | 189 linfo.task.tid = getpid(); in check_bpf_link_info() 231 skel->bss->tid = getpid(); in test_task_common_nocheck() 261 linfo.task.tid = getpid(); in test_task_tid() 267 linfo.task.pid = getpid(); in test_task_tid() 281 linfo.task.pid = getpid(); in test_task_pid() 352 skel->bss->tgid = getpid(); in test_task_file() 360 linfo.task.tid = getpid(); in test_task_file() 1208 getpid(), val, err)) in test_bpf_sk_storage_get() 1410 skel->bss->pid = getpid(); in test_task_vma_common() 1480 skel->bss->pid = getpid(); in test_task_vma_dead_task() [all …]
|
A D | test_local_storage.c | 40 *monitored_pid = getpid(); in run_self_unlink() 114 task_fd = sys_pidfd_open(getpid(), 0); in test_test_local_storage() 152 skel->bss->monitored_pid = getpid(); in test_test_local_storage()
|
A D | uprobe_autoattach.c | 31 skel->bss->test_pid = getpid(); in test_uprobe_autoattach() 36 skel->bss->test_pid = getpid(); in test_uprobe_autoattach()
|
A D | test_lsm.c | 43 *monitored_pid = getpid(); in exec_cmd() 75 skel->bss->monitored_pid = getpid(); in test_lsm()
|
/linux-6.3-rc2/tools/testing/selftests/pidfd/ |
A D | pidfd_test.c | 384 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 390 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 429 ksft_print_msg("Child (pidfd): starting. pid %d tid %d\n", getpid(), in child_poll_exec_test() 449 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec() 483 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 485 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 494 ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test() 522 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
|
A D | pidfd_wait.c | 112 kill(getpid(), SIGSTOP); in TEST() 115 kill(getpid(), SIGSTOP); in TEST() 169 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST() 185 kill(getpid(), SIGSTOP); in TEST()
|
A D | pidfd_open_test.c | 137 pidfd = sys_pidfd_open(getpid(), 1); in main() 146 pidfd = sys_pidfd_open(getpid(), 0); in main()
|
/linux-6.3-rc2/tools/testing/selftests/powerpc/signal/ |
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-6.3-rc2/tools/testing/selftests/rlimits/ |
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-6.3-rc2/tools/testing/selftests/sched/ |
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-6.3-rc2/tools/power/cpupower/utils/idle_monitor/ |
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-6.3-rc2/tools/testing/selftests/x86/ |
A D | ptrace_syscall.c | 149 if (args.nr != getpid() || in test_sys32_regs() 161 args.arg0 = getpid(); in test_sys32_regs() 165 args.arg0 != getpid() || args.arg1 != SIGUSR1 || args.arg2 != 12 || in test_sys32_regs() 186 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_ptrace_syscall_restart() 306 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_restart_under_ptrace()
|
/linux-6.3-rc2/tools/perf/jvmti/ |
A D | jvmti_agent.c | 276 ret = snprintf(dump_path, PATH_MAX, "%s/jit-%i.dump", jit_path, getpid()); in jvmti_open() 280 " JITDUMPDIR, and HOME variables", jit_path, getpid()); in jvmti_open() 313 header.pid = getpid(); in jvmti_open() 386 rec.pid = getpid(); in jvmti_write_code()
|
/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | split_huge_page_test.c | 115 write_debugfs(PID_FMT, getpid(), (uint64_t)one_page, in split_pmd_thp() 146 if (snprintf(pagemap_proc, 255, pagemap_template, getpid()) < 0) { in split_pte_mapped_thp() 205 write_debugfs(PID_FMT, getpid(), (uint64_t)pte_mapped, in split_pte_mapped_thp()
|