Home
last modified time | relevance | path

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

1234567

/Linux-v5.10/tools/testing/selftests/clone3/
Dclone3_set_tid.c69 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 …]
Dclone3_cap_checkpoint_restore.c63 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()
Dclone3.c83 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3()
88 getpid(), pid); in call_clone3()
107 getpid(), flags, size); in test_clone3()
110 getpid(), ret, expected); in test_clone3()
114 getpid(), ret, expected); in test_clone3()
118 getpid(), ret, expected); in test_clone3()
/Linux-v5.10/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.c46 (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()
Ddwarf-unwind.c38 pid_t pid = getpid(); in init_live_machine()
205 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()
/Linux-v5.10/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()
Dtest_lsm.c44 *monitored_pid = getpid(); in exec_cmd()
76 skel->bss->monitored_pid = getpid(); in test_test_lsm()
/Linux-v5.10/tools/testing/selftests/pidfd/
Dpidfd_test.c384 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 %d\n", getpid(), in child_poll_exec_test()
448 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec()
482 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
484 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
493 ksft_print_msg("Child: starting. pid %d tid %d\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()
Dpidfd_wait.c109 kill(getpid(), SIGSTOP); in TEST()
110 kill(getpid(), SIGSTOP); in TEST()
161 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST()
177 kill(getpid(), SIGSTOP); in TEST()
Dpidfd_open_test.c137 pidfd = sys_pidfd_open(getpid(), 1); in main()
146 pidfd = sys_pidfd_open(getpid(), 0); in main()
Dpidfd_setns_test.c141 self->pid = getpid(); in FIXTURE_SETUP()
368 pid = getpid(); in TEST_F()
382 pid = getpid(); in TEST_F()
418 pid = getpid(); in TEST_F()
471 pid = getpid(); in TEST_F()
/Linux-v5.10/tools/testing/selftests/powerpc/signal/
Dsigreturn_vdso.c89 kill(getpid(), SIGUSR1); in test_sigreturn_vdso()
101 kill(getpid(), SIGUSR1); in test_sigreturn_vdso()
117 kill(getpid(), SIGUSR1); in test_sigreturn_vdso()
/Linux-v5.10/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.h87 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu()
90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/Linux-v5.10/tools/perf/arch/x86/tests/
Dperf-time-to-tsc.c72 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc()
128 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc()
129 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
/Linux-v5.10/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()
Dfsgsbase_restore.c131 pid_t pid = getpid(), tid = syscall(SYS_gettid); in tracee_zap_segment()
165 pid_t pid = getpid(), tid = syscall(SYS_gettid); in main()
/Linux-v5.10/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.10/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()
/Linux-v5.10/tools/testing/selftests/kcmp/
Dkcmp_test.c43 pid1 = getpid(); in main()
88 int pid2 = getpid(); in main()
/Linux-v5.10/tools/testing/selftests/seccomp/
Dseccomp_benchmark.c25 pid = getpid(); in timing()
55 pid = getpid(); in calibrate()
/Linux-v5.10/tools/testing/selftests/bpf/
Dget_cgroup_id_user.c79 pid = getpid(); in main()
102 pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); in main()
/Linux-v5.10/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.10/tools/perf/include/bpf/
Dunistd.h7 static pid_t getpid(void) in getpid() function

1234567