Home
last modified time | relevance | path

Searched refs:getpid (Results 1 – 25 of 94) sorted by relevance

1234

/Linux-v4.19/tools/perf/tests/
Dthread-map.c21 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()
Dkeep-tracking.c40 (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()
Ddwarf-unwind.c34 pid_t pid = getpid(); in init_live_machine()
200 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
Dmmap-thread-lookup.c143 map = thread_map__new_by_pid(getpid()); in synth_process()
187 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
Devent-times.c65 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()
Dopenat-syscall.c19 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event()
Dswitch-tracking.c68 (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/
Dcpupower-monitor.h86 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/
Dperf-time-to-tsc.c65 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/
Dptrace_syscall.c149 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/
Dtask_fd_query_user.c97 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()
Dtest_current_task_under_cgroup_user.c21 pid_t remote_pid, local_pid = getpid(); in main()
/Linux-v4.19/tools/testing/selftests/kcmp/
Dkcmp_test.c43 pid1 = getpid(); in main()
88 int pid2 = getpid(); in main()
/Linux-v4.19/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c140 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/
Dget_cgroup_id_user.c89 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/
Dcgroup_util.c247 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/
Djvmti_agent.c253 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/
Dfork.c315 setpgid(getpid(), getpid()); in main()
/Linux-v4.19/tools/testing/selftests/powerpc/dscr/
Ddscr_explicit_test.c27 srand(getpid()); in dscr_explicit()
Ddscr_inherit_test.c28 srand(getpid()); in dscr_inherit()
/Linux-v4.19/tools/testing/selftests/powerpc/signal/
Dsignal_tm.c76 rc = tm_signal_self(getpid(), SIGUSR1, &ret); in test_signal_tm()
Dsignal.c44 pid_t ppid = getpid(); in test_signal()
/Linux-v4.19/tools/testing/selftests/kvm/lib/
Dassert.c76 file, line, exp_str, getpid(), gettid(), in test_assert()
/Linux-v4.19/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-chk-gpr.c65 pid_t pid = getpid(); in tm_signal_context_chk_gpr()
Dtm-signal-context-chk-fpu.c67 pid_t pid = getpid(); in tm_signal_context_chk_fpu()

1234