/Linux-v4.19/tools/perf/tests/ |
D | thread-map.c | 21 map = thread_map__new_by_pid(getpid()); in test__thread_map() 28 thread_map__pid(map, 0) == getpid()); in test__thread_map() 62 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event() 70 thread_map__pid(threads, 0) == getpid()); in process_event() 88 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize() 106 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
|
D | keep-tracking.c | 40 (pid_t)event->comm.pid == getpid() && in find_comm() 41 (pid_t)event->comm.tid == getpid() && in find_comm() 75 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__keep_tracking()
|
D | dwarf-unwind.c | 34 pid_t pid = getpid(); in init_live_machine() 200 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
|
D | mmap-thread-lookup.c | 143 map = thread_map__new_by_pid(getpid()); in synth_process() 187 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
|
D | event-times.c | 65 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_disabled() 91 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_enabled()
|
D | openat-syscall.c | 19 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event()
|
D | switch-tracking.c | 68 (pid_t)event->comm.pid == getpid() && in check_comm() 69 (pid_t)event->comm.tid == getpid() && in check_comm() 337 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__switch_tracking()
|
/Linux-v4.19/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.h | 86 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu() 89 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
|
/Linux-v4.19/tools/perf/arch/x86/tests/ |
D | perf-time-to-tsc.c | 65 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc() 121 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 122 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
|
/Linux-v4.19/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-v4.19/samples/bpf/ |
D | task_fd_query_user.c | 97 err = bpf_task_fd_query(getpid(), event_fd[prog_fd_idx], 0, buf, &len, in test_debug_fs_kprobe() 155 CHECK_PERROR_RET(bpf_task_fd_query(getpid(), fd, 0, buf, buf_len, in test_nondebug_fs_kuprobe_common() 230 res = snprintf(event_alias, sizeof(event_alias), "test_%d", getpid()); in test_debug_fs_uprobe() 262 err = bpf_task_fd_query(getpid(), kfd, 0, buf, &len, in test_debug_fs_uprobe()
|
D | test_current_task_under_cgroup_user.c | 21 pid_t remote_pid, local_pid = getpid(); in main()
|
/Linux-v4.19/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 43 pid1 = getpid(); in main() 88 int pid2 = getpid(); in main()
|
/Linux-v4.19/tools/testing/selftests/breakpoints/ |
D | breakpoint_test.c | 140 kill(getpid(), SIGUSR1); in check_trapped() 215 kill(getpid(), SIGUSR1); in trigger_tests() 260 kill(getpid(), SIGUSR1); in trigger_tests()
|
/Linux-v4.19/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-v4.19/tools/testing/selftests/cgroup/ |
D | cgroup_util.c | 247 snprintf(pidbuf, sizeof(pidbuf), "%d", getpid()); in cg_enter_current() 263 snprintf(buf, sizeof(buf), "%d", getpid()); in cg_run() 286 snprintf(buf, sizeof(buf), "%d", getpid()); in cg_run_nowait()
|
/Linux-v4.19/tools/perf/jvmti/ |
D | jvmti_agent.c | 253 scnprintf(dump_path, PATH_MAX, "%s/jit-%i.dump", jit_path, getpid()); in jvmti_open() 284 header.pid = getpid(); in jvmti_open() 357 rec.pid = getpid(); in jvmti_write_code()
|
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/ |
D | fork.c | 315 setpgid(getpid(), getpid()); in main()
|
/Linux-v4.19/tools/testing/selftests/powerpc/dscr/ |
D | dscr_explicit_test.c | 27 srand(getpid()); in dscr_explicit()
|
D | dscr_inherit_test.c | 28 srand(getpid()); in dscr_inherit()
|
/Linux-v4.19/tools/testing/selftests/powerpc/signal/ |
D | signal_tm.c | 76 rc = tm_signal_self(getpid(), SIGUSR1, &ret); in test_signal_tm()
|
D | signal.c | 44 pid_t ppid = getpid(); in test_signal()
|
/Linux-v4.19/tools/testing/selftests/kvm/lib/ |
D | assert.c | 76 file, line, exp_str, getpid(), gettid(), in test_assert()
|
/Linux-v4.19/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-chk-gpr.c | 65 pid_t pid = getpid(); in tm_signal_context_chk_gpr()
|
D | tm-signal-context-chk-fpu.c | 67 pid_t pid = getpid(); in tm_signal_context_chk_fpu()
|