Home
last modified time | relevance | path

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

12345678910

/tools/testing/selftests/arm64/abi/
Dtpidr2.c76 set_tpidr2(getpid()); in write_read()
78 return getpid() == get_tpidr2(); in write_read()
84 set_tpidr2(getpid()); in write_sleep_read()
88 return getpid() == get_tpidr2(); in write_sleep_read()
101 set_tpidr2(getpid()); in write_fork_read()
103 oldpid = getpid(); in write_fork_read()
114 set_tpidr2(getpid()); in write_fork_read()
115 if (get_tpidr2() == getpid()) { in write_fork_read()
150 if (getpid() != get_tpidr2()) { in write_fork_read()
183 parent = getpid(); in write_clone_read()
[all …]
/tools/testing/selftests/clone3/
Dclone3_cap_checkpoint_restore.c59 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
61 if (set_tid[0] != getpid()) in call_clone3_set_tid()
66 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
84 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
86 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
151 TH_LOG("Child has PID %d", getpid()); in TEST()
Dclone3_set_tid.c67 getpid(), set_tid[0]); in call_clone3_set_tid()
70 getpid()); in call_clone3_set_tid()
91 if (set_tid[0] != getpid()) in call_clone3_set_tid()
98 getpid(), pid); in call_clone3_set_tid()
129 getpid(), set_tid[0], flags); in test_clone3_set_tid()
134 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid()
272 ksft_print_msg("Child has PID %d\n", getpid()); in main()
325 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main()
361 ksft_print_msg("[%d] Child is ready and waiting\n", getpid()); in main()
Dclone3.c90 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3()
95 getpid(), pid); in call_clone3()
119 getpid(), flags, size); in test_clone3()
122 getpid(), ret, expected); in test_clone3()
126 getpid(), ret, expected); in test_clone3()
/tools/perf/tests/
Dthread-map.c31 map = thread_map__new_by_pid(getpid()); in test__thread_map()
38 perf_thread_map__pid(map, 0) == getpid()); in test__thread_map()
72 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event()
80 perf_thread_map__pid(threads, 0) == getpid()); in process_event()
98 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize()
116 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.c51 pid_t pid = getpid(); in init_live_machine()
228 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
Dperf-time-to-tsc.c93 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc()
157 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc()
158 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
/tools/testing/selftests/bpf/map_tests/
Dtask_storage_map.c89 sched_getaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
94 sched_setaffinity(getpid(), sizeof(new), &new); in test_task_storage_map_stress_lookup()
98 ctx.pid_fd = sys_pidfd_open(getpid(), 0); in test_task_storage_map_stress_lookup()
114 skel->bss->pid = getpid(); in test_task_storage_map_stress_lookup()
126 sched_setaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
/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()
Dtask_local_storage.c88 task_fd = sys_pidfd_open(getpid(), 0); in test_recursion()
101 skel->bss->test_pid = getpid(); in test_recursion()
178 err = sched_getaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
181 err = sched_setaffinity(getpid(), sizeof(new), &new); in test_nodeadlock()
227 sched_setaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
Dtask_under_cgroup.c25 skel->rodata->local_pid = getpid(); in test_task_under_cgroup()
26 skel->bss->remote_pid = getpid(); in test_task_under_cgroup()
Dpercpu_alloc.c22 skel->bss->my_pid = getpid(); in test_array()
55 skel->bss->my_pid = getpid(); in test_array_sleepable()
90 skel->bss->my_pid = getpid(); in test_cgrp_local_storage()
Dtest_local_storage.c38 skel->bss->monitored_pid = getpid(); in run_self_unlink()
107 task_fd = sys_pidfd_open(getpid(), 0); in test_test_local_storage()
142 skel->bss->monitored_pid = getpid(); in test_test_local_storage()
Dmap_btf.c22 skel->bss->pid = getpid(); in do_test_normal_map_btf()
69 skel->bss->pid = getpid(); in do_test_map_in_map_btf()
Duprobe_autoattach.c30 skel->bss->test_pid = getpid(); in test_uprobe_autoattach()
35 skel->bss->test_pid = getpid(); in test_uprobe_autoattach()
Diters.c119 skel->bss->target_pid = getpid(); in subtest_task_vma_iters()
183 skel->bss->target_pid = getpid(); in subtest_task_iters()
228 skel->bss->target_pid = getpid(); in subtest_css_task_iters()
273 skel->bss->target_pid = getpid(); in subtest_css_iters()
Dtimer_crash.c17 skel->bss->pid = getpid(); in test_timer_crash_mode()
/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()
/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()
/tools/testing/selftests/pidfd/
Dpidfd_test.c437 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread()
443 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread()
482 ksft_print_msg("Child (pidfd): starting. pid %d tid %ld\n", getpid(), in child_poll_exec_test()
502 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec()
536 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
538 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
547 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
575 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
Dpidfd_wait.c112 kill(getpid(), SIGSTOP); in TEST()
115 kill(getpid(), SIGSTOP); in TEST()
169 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST()
185 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()
/tools/testing/selftests/rlimits/
Drlimits-per-userns.c32 pid_t pid = getpid(); in setrlimit_nproc()
54 pid = getpid(); in fork_child()
99 pid = getpid(); in main()
/tools/testing/selftests/sched/
Dcs_prctl_test.c205 printf("tid=%d, / tgid=%d / pgid=%d: %lx\n", gettid(), getpid(), getpgid(0), in disp_processes()
206 get_cs_cookie(getpid())); in disp_processes()
309 getpid(), pid); in main()
319 procs[pidx].thr_tids[0], getpid()); in main()
328 printf("\n## Copy cookie from current [%d] to current as pidtype PGID\n", getpid()); in main()

12345678910