/tools/testing/selftests/clone3/ |
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_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.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()
|
/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 | 51 pid_t pid = getpid(); in init_live_machine() 226 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
|
D | perf-time-to-tsc.c | 70 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc() 127 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 128 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
|
/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 | 43 *monitored_pid = getpid(); in exec_cmd() 75 skel->bss->monitored_pid = getpid(); in test_lsm()
|
D | test_local_storage.c | 52 *monitored_pid = getpid(); in run_self_unlink() 130 task_fd = sys_pidfd_open(getpid(), 0); in test_test_local_storage() 168 skel->bss->monitored_pid = getpid(); in test_test_local_storage()
|
D | stack_var_off.c | 18 skel->bss->test_pid = getpid(); in test_stack_var_off()
|
D | core_retro.c | 9 int err, zero = 0, res, duration = 0, my_pid = getpid(); in test_core_retro()
|
/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()
|
/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 %ld\n", getpid(), in child_poll_exec_test() 447 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec() 481 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 483 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 492 ksft_print_msg("Child: starting. pid %d tid %ld\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 | 108 kill(getpid(), SIGSTOP); in TEST() 109 kill(getpid(), SIGSTOP); in TEST() 160 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST() 176 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()
|
/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()
|
/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 32 pid_t pid = getpid(); in setrlimit_nproc() 54 pid = getpid(); in fork_child() 99 pid = getpid(); in main()
|
/tools/perf/include/bpf/ |
D | unistd.h | 7 static pid_t getpid(void) in getpid() function
|
/tools/testing/selftests/sched/ |
D | cs_prctl_test.c | 196 printf("tid=%d, / tgid=%d / pgid=%d: %lx\n", gettid(), getpid(), getpgid(0), in disp_processes() 197 get_cs_cookie(getpid())); in disp_processes() 300 getpid(), pid); in main() 310 procs[pidx].thr_tids[0], getpid()); in main() 319 printf("\n## Copy cookie from current [%d] to current as pidtype PGID\n", getpid()); in main()
|
/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 43 pid1 = getpid(); in main() 88 int pid2 = getpid(); in main()
|
/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()
|
/tools/testing/selftests/bpf/ |
D | get_cgroup_id_user.c | 83 pid = getpid(); in main() 106 pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); in main()
|
/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()
|
/tools/testing/selftests/powerpc/dscr/ |
D | dscr_explicit_test.c | 26 srand(getpid()); in dscr_explicit()
|