/linux-6.12.1/tools/testing/selftests/arm64/abi/ |
D | tpidr2.c | 76 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-6.12.1/tools/testing/selftests/clone3/ |
D | clone3_cap_checkpoint_restore.c | 59 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()
|
D | clone3_set_tid.c | 67 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()
|
D | clone3.c | 90 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-6.12.1/tools/perf/tests/ |
D | thread-map.c | 31 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()
|
D | keep-tracking.c | 46 (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()
|
D | dwarf-unwind.c | 51 pid_t pid = getpid(); in init_live_machine() 228 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
|
D | perf-time-to-tsc.c | 93 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-6.12.1/tools/testing/selftests/bpf/map_tests/ |
D | task_storage_map.c | 88 sched_getaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup() 93 sched_setaffinity(getpid(), sizeof(new), &new); in test_task_storage_map_stress_lookup() 97 ctx.pid_fd = sys_pidfd_open(getpid(), 0); in test_task_storage_map_stress_lookup() 113 skel->bss->pid = getpid(); in test_task_storage_map_stress_lookup() 125 sched_setaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | task_fd_query_rawtp.c | 24 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()
|
D | task_local_storage.c | 88 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()
|
D | percpu_alloc.c | 22 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()
|
D | test_local_storage.c | 38 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()
|
D | task_under_cgroup.c | 25 skel->rodata->local_pid = getpid(); in test_task_under_cgroup() 26 skel->bss->remote_pid = getpid(); in test_task_under_cgroup()
|
D | iters.c | 119 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()
|
D | map_btf.c | 22 skel->bss->pid = getpid(); in do_test_normal_map_btf() 69 skel->bss->pid = getpid(); in do_test_map_in_map_btf()
|
D | bpf_iter.c | 187 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(), 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 …]
|
/linux-6.12.1/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 385 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()
|
D | pidfd_wait.c | 112 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()
|
/linux-6.12.1/tools/testing/selftests/powerpc/signal/ |
D | sigreturn_vdso.c | 89 kill(getpid(), SIGUSR1); in test_sigreturn_vdso() 101 kill(getpid(), SIGUSR1); in test_sigreturn_vdso() 117 kill(getpid(), SIGUSR1); in test_sigreturn_vdso()
|
/linux-6.12.1/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 32 pid_t pid = getpid(); in setrlimit_nproc() 54 pid = getpid(); in fork_child() 99 pid = getpid(); in main()
|
/linux-6.12.1/tools/testing/selftests/sched/ |
D | cs_prctl_test.c | 205 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-6.12.1/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.h | 87 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu() 90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
|
/linux-6.12.1/tools/testing/selftests/mm/ |
D | protection_keys.c | 107 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() 1189 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); in become_child() 1387 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in test_ptrace_of_child() 1392 dprintf1("[%d] attach ret: %ld %d\n", getpid(), ret, __LINE__); in test_ptrace_of_child() 1563 dprintf3("[%d] fork() ret: %d\n", getpid(), child); in test_ptrace_modifies_pkru() 1589 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru() 1621 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru() 1648 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru() [all …]
|
D | split_huge_page_test.c | 123 write_debugfs(PID_FMT, getpid(), (uint64_t)one_page, in verify_rss_anon_split_huge_page_all_zeroes() 176 write_debugfs(PID_FMT, getpid(), (uint64_t)one_page, in split_pmd_thp() 203 if (snprintf(pagemap_proc, 255, pagemap_template, getpid()) < 0) in split_pte_mapped_thp() 251 write_debugfs(PID_FMT, getpid(), (uint64_t)pte_mapped, in split_pte_mapped_thp() 451 write_debugfs(PID_FMT, getpid(), (uint64_t)addr, (uint64_t)addr + fd_size, order); in split_thp_in_pagecache_to_order()
|