Home
last modified time | relevance | path

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

12345678910

/linux/tools/testing/selftests/arm64/abi/
H A 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 …]
/linux/tools/perf/tests/
H A 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()
H A 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()
H A Ddwarf-unwind.c51 pid_t pid = getpid(); in init_live_machine()
228 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
H A 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()
/linux/tools/testing/selftests/clone3/
H A 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()
H A 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()
/linux/tools/testing/selftests/bpf/map_tests/
H A 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()
/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dtask_local_storage.c96 task_fd = sys_pidfd_open(getpid(), 0); in test_recursion()
109 skel->bss->test_pid = getpid(); in test_recursion()
186 err = sched_getaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
189 err = sched_setaffinity(getpid(), sizeof(new), &new); in test_nodeadlock()
235 sched_setaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
383 task_fd = sys_pidfd_open(getpid(), 0); in test_uptr_across_pages()
421 task_fd = sys_pidfd_open(getpid(), 0); in test_uptr_update_failure()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dbpf_iter.c187 linfo.task.tid = getpid(); in check_bpf_link_info()
198 ASSERT_EQ(info.iter.task.tid, getpid(), "check_task_tid"); in check_bpf_link_info()
258 ASSERT_NEQ(getpid(), sys_gettid(), "check_new_thread_id"); in run_test_task_tid()
267 linfo.task.pid = getpid(); in run_test_task_tid()
296 linfo.task.pid = getpid(); in test_task_pid()
309 pidfd = sys_pidfd_open(getpid(), 0); in test_task_pidfd()
369 skel->bss->tgid = getpid(); in test_task_file()
377 linfo.task.tid = getpid(); in test_task_file()
1223 !ASSERT_EQ(val, getpid(), "bpf_map_lookup_elem")) in test_bpf_sk_storage_get()
1230 ASSERT_EQ(val, -getpid(), "bpf_map_lookup_elem"); in test_bpf_sk_storage_get()
[all …]
H A 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()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c385 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread()
391 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread()
430 ksft_print_msg("Child (pidfd): starting. pid %d tid %ld\n", getpid(), in child_poll_exec_test()
450 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec()
484 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
486 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
495 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
523 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
H A Dpidfd_wait.c101 kill(getpid(), SIGSTOP); in TEST()
104 kill(getpid(), SIGSTOP); in TEST()
158 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST()
174 kill(getpid(), SIGSTOP); in TEST()
/linux/tools/testing/selftests/powerpc/signal/
H A 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/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c32 pid_t pid = getpid(); in setrlimit_nproc()
54 pid = getpid(); in fork_child()
99 pid = getpid(); in main()
/linux/tools/testing/selftests/sched/
H A 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()
/linux/tools/power/cpupower/utils/idle_monitor/
H A 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/tools/testing/selftests/mm/
H A Dprotection_keys.c113 sprintf(pidstr, "%d", getpid()); in tracing_on()
409 dprintf2("[%d] SIGCHLD: %d\n", getpid(), x); in sig_chld()
451 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); in fork_lazy_child()
1127 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); in become_child()
1325 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in test_ptrace_of_child()
1330 dprintf1("[%d] attach ret: %ld %d\n", getpid(), ret, __LINE__); in test_ptrace_of_child()
1501 dprintf3("[%d] fork() ret: %d\n", getpid(), child); in test_ptrace_modifies_pkru()
1527 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru()
1559 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru()
1586 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru()
[all …]
H A Dsplit_huge_page_test.c119 write_debugfs(PID_FMT, getpid(), (uint64_t)one_page, in verify_rss_anon_split_huge_page_all_zeroes()
166 write_debugfs(PID_FMT, getpid(), (uint64_t)one_page, in split_pmd_thp()
193 if (snprintf(pagemap_proc, 255, pagemap_template, getpid()) < 0) in split_pte_mapped_thp()
241 write_debugfs(PID_FMT, getpid(), (uint64_t)pte_mapped, in split_pte_mapped_thp()
441 write_debugfs(PID_FMT, getpid(), (uint64_t)addr, (uint64_t)addr + fd_size, order); in split_thp_in_pagecache_to_order()
/linux/tools/testing/selftests/x86/
H A 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()

12345678910