/Linux-v5.10/tools/testing/selftests/clone3/ |
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 …]
|
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()
|
D | clone3.c | 83 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3() 88 getpid(), pid); in call_clone3() 107 getpid(), flags, size); in test_clone3() 110 getpid(), ret, expected); in test_clone3() 114 getpid(), ret, expected); in test_clone3() 118 getpid(), ret, expected); in test_clone3()
|
/Linux-v5.10/tools/perf/tests/ |
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()
|
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()
|
D | dwarf-unwind.c | 38 pid_t pid = getpid(); in init_live_machine() 205 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
|
D | mmap-thread-lookup.c | 146 map = thread_map__new_by_pid(getpid()); in synth_process() 190 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
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()
|
D | test_lsm.c | 44 *monitored_pid = getpid(); in exec_cmd() 76 skel->bss->monitored_pid = getpid(); in test_test_lsm()
|
/Linux-v5.10/tools/testing/selftests/pidfd/ |
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() 448 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec() 482 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 484 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 493 ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test() 520 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
|
D | pidfd_wait.c | 109 kill(getpid(), SIGSTOP); in TEST() 110 kill(getpid(), SIGSTOP); in TEST() 161 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST() 177 kill(getpid(), SIGSTOP); in TEST()
|
D | pidfd_open_test.c | 137 pidfd = sys_pidfd_open(getpid(), 1); in main() 146 pidfd = sys_pidfd_open(getpid(), 0); in main()
|
D | pidfd_setns_test.c | 141 self->pid = getpid(); in FIXTURE_SETUP() 368 pid = getpid(); in TEST_F() 382 pid = getpid(); in TEST_F() 418 pid = getpid(); in TEST_F() 471 pid = getpid(); in TEST_F()
|
/Linux-v5.10/tools/testing/selftests/powerpc/signal/ |
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-v5.10/tools/power/cpupower/utils/idle_monitor/ |
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-v5.10/tools/perf/arch/x86/tests/ |
D | perf-time-to-tsc.c | 72 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc() 128 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 129 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
|
/Linux-v5.10/tools/testing/selftests/x86/ |
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()
|
D | fsgsbase_restore.c | 131 pid_t pid = getpid(), tid = syscall(SYS_gettid); in tracee_zap_segment() 165 pid_t pid = getpid(), tid = syscall(SYS_gettid); in main()
|
/Linux-v5.10/tools/perf/jvmti/ |
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-v5.10/samples/bpf/ |
D | task_fd_query_user.c | 98 err = bpf_task_fd_query(getpid(), event_fd[prog_fd_idx], 0, buf, &len, in test_debug_fs_kprobe() 156 CHECK_PERROR_RET(bpf_task_fd_query(getpid(), fd, 0, buf, buf_len, in test_nondebug_fs_kuprobe_common() 231 res = snprintf(event_alias, sizeof(event_alias), "test_%d", getpid()); in test_debug_fs_uprobe() 263 err = bpf_task_fd_query(getpid(), kfd, 0, buf, &len, in test_debug_fs_uprobe()
|
/Linux-v5.10/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 43 pid1 = getpid(); in main() 88 int pid2 = getpid(); in main()
|
/Linux-v5.10/tools/testing/selftests/seccomp/ |
D | seccomp_benchmark.c | 25 pid = getpid(); in timing() 55 pid = getpid(); in calibrate()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | get_cgroup_id_user.c | 79 pid = getpid(); in main() 102 pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); in main()
|
/Linux-v5.10/tools/testing/selftests/breakpoints/ |
D | breakpoint_test.c | 141 kill(getpid(), SIGUSR1); in check_trapped() 216 kill(getpid(), SIGUSR1); in trigger_tests() 261 kill(getpid(), SIGUSR1); in trigger_tests()
|
/Linux-v5.10/tools/perf/include/bpf/ |
D | unistd.h | 7 static pid_t getpid(void) in getpid() function
|