/Linux-v5.4/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 | 45 (pid_t)event->comm.pid == getpid() && in find_comm() 46 (pid_t)event->comm.tid == getpid() && in find_comm() 80 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() 204 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()
|
D | event-times.c | 67 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_disabled() 93 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_enabled()
|
D | openat-syscall.c | 21 struct perf_thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event()
|
/Linux-v5.4/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()
|
/Linux-v5.4/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 347 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 353 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 392 ksft_print_msg("Child (pidfd): starting. pid %d tid %d\n", getpid(), in child_poll_exec_test() 411 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec() 445 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 447 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 456 ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test() 483 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
|
D | pidfd_open_test.c | 138 pidfd = sys_pidfd_open(getpid(), 1); in main() 147 pidfd = sys_pidfd_open(getpid(), 0); in main()
|
/Linux-v5.4/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.h | 84 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu() 87 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
|
/Linux-v5.4/tools/perf/arch/x86/tests/ |
D | perf-time-to-tsc.c | 71 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()
|
/Linux-v5.4/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()
|
/Linux-v5.4/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.4/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()
|
D | test_current_task_under_cgroup_user.c | 17 pid_t remote_pid, local_pid = getpid(); in main()
|
/Linux-v5.4/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 43 pid1 = getpid(); in main() 88 int pid2 = getpid(); in main()
|
/Linux-v5.4/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.4/tools/testing/selftests/bpf/ |
D | get_cgroup_id_user.c | 89 pid = getpid(); in main() 112 pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); in main()
|
/Linux-v5.4/tools/perf/include/bpf/ |
D | unistd.h | 7 static pid_t getpid(void) in getpid() function
|
/Linux-v5.4/tools/testing/selftests/powerpc/benchmarks/ |
D | fork.c | 315 setpgid(getpid(), getpid()); in main()
|
/Linux-v5.4/tools/testing/selftests/cgroup/ |
D | cgroup_util.c | 287 snprintf(pidbuf, sizeof(pidbuf), "%d", getpid()); in cg_enter_current() 303 snprintf(buf, sizeof(buf), "%d", getpid()); in cg_run() 326 snprintf(buf, sizeof(buf), "%d", getpid()); in cg_run_nowait()
|
/Linux-v5.4/tools/testing/selftests/powerpc/dscr/ |
D | dscr_explicit_test.c | 24 srand(getpid()); in dscr_explicit()
|
D | dscr_inherit_test.c | 25 srand(getpid()); in dscr_inherit()
|
/Linux-v5.4/tools/perf/examples/bpf/ |
D | augmented_raw_syscalls.c | 253 if (pid_filter__has(&pids_filtered, getpid())) in sys_enter() 278 if (pid_filter__has(&pids_filtered, getpid())) in sys_exit()
|
/Linux-v5.4/tools/testing/selftests/powerpc/signal/ |
D | signal_tm.c | 72 rc = tm_signal_self(getpid(), SIGUSR1, &ret); in test_signal_tm()
|