Home
last modified time | relevance | path

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

12345

/Linux-v5.4/tools/perf/tests/
Dthread-map.c30 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()
Dkeep-tracking.c45 (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()
Ddwarf-unwind.c38 pid_t pid = getpid(); in init_live_machine()
204 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
Dmmap-thread-lookup.c146 map = thread_map__new_by_pid(getpid()); in synth_process()
190 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
Devent-times.c67 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()
Dopenat-syscall.c21 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/
Dtask_fd_query_rawtp.c24 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/
Dpidfd_test.c347 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()
Dpidfd_open_test.c138 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/
Dcpupower-monitor.h84 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/
Dperf-time-to-tsc.c71 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/
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-v5.4/tools/perf/jvmti/
Djvmti_agent.c276 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/
Dtask_fd_query_user.c98 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()
Dtest_current_task_under_cgroup_user.c17 pid_t remote_pid, local_pid = getpid(); in main()
/Linux-v5.4/tools/testing/selftests/kcmp/
Dkcmp_test.c43 pid1 = getpid(); in main()
88 int pid2 = getpid(); in main()
/Linux-v5.4/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c141 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/
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-v5.4/tools/perf/include/bpf/
Dunistd.h7 static pid_t getpid(void) in getpid() function
/Linux-v5.4/tools/testing/selftests/powerpc/benchmarks/
Dfork.c315 setpgid(getpid(), getpid()); in main()
/Linux-v5.4/tools/testing/selftests/cgroup/
Dcgroup_util.c287 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/
Ddscr_explicit_test.c24 srand(getpid()); in dscr_explicit()
Ddscr_inherit_test.c25 srand(getpid()); in dscr_inherit()
/Linux-v5.4/tools/perf/examples/bpf/
Daugmented_raw_syscalls.c253 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/
Dsignal_tm.c72 rc = tm_signal_self(getpid(), SIGUSR1, &ret); in test_signal_tm()

12345