/linux-master/tools/testing/selftests/arm64/abi/ |
H A D | tpidr2.c | 76 set_tpidr2(getpid()); 78 return getpid() == get_tpidr2(); 84 set_tpidr2(getpid()); 88 return getpid() == get_tpidr2(); 101 set_tpidr2(getpid()); 103 oldpid = getpid(); 114 set_tpidr2(getpid()); 115 if (get_tpidr2() == getpid()) { 150 if (getpid() != get_tpidr2()) { 183 parent = getpid(); [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | stack_var_off.c | 18 skel->bss->test_pid = getpid();
|
H A D | prog_array_init.c | 16 skel->rodata->my_pid = getpid();
|
H A D | timer_crash.c | 17 skel->bss->pid = getpid();
|
H A D | task_fd_query_rawtp.c | 22 /* query (getpid(), efd) */ 24 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, 38 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, 50 err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, 62 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id,
|
H A D | exhandler.c | 28 skel->bss->test_pid = getpid();
|
H A D | core_retro.c | 9 int err, zero = 0, res, my_pid = getpid();
|
H A D | task_under_cgroup.c | 25 skel->rodata->local_pid = getpid(); 26 skel->bss->remote_pid = getpid();
|
H A D | map_btf.c | 22 skel->bss->pid = getpid(); 69 skel->bss->pid = getpid();
|
H A D | percpu_alloc.c | 22 skel->bss->my_pid = getpid(); 55 skel->bss->my_pid = getpid(); 90 skel->bss->my_pid = getpid();
|
H A D | skc_to_unix_sock.c | 20 skel->rodata->my_pid = getpid();
|
H A D | read_vsyscall.c | 42 skel->bss->target_pid = getpid();
|
H A D | test_lsm.c | 43 *monitored_pid = getpid(); 75 skel->bss->monitored_pid = getpid();
|
H A D | uprobe_autoattach.c | 30 skel->bss->test_pid = getpid(); 35 skel->bss->test_pid = getpid();
|
/linux-master/tools/testing/selftests/bpf/map_tests/ |
H A D | task_storage_map.c | 88 sched_getaffinity(getpid(), sizeof(old), &old); 93 sched_setaffinity(getpid(), sizeof(new), &new); 97 ctx.pid_fd = sys_pidfd_open(getpid(), 0); 113 skel->bss->pid = getpid(); 125 sched_setaffinity(getpid(), sizeof(old), &old);
|
/linux-master/tools/testing/selftests/clone3/ |
H A D | clone3_set_tid.c | 67 getpid(), set_tid[0]); 70 getpid()); 91 if (set_tid[0] != getpid()) 98 getpid(), pid); 128 getpid(), set_tid[0], flags); 133 getpid(), set_tid[0], ret, expected); 137 getpid(), ret, expected); 141 getpid(), ret, expected); 257 ksft_print_msg("Child has PID %d\n", getpid()); 304 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); [all...] |
H A D | clone3_cap_checkpoint_restore.c | 61 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); 63 if (set_tid[0] != getpid()) 68 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); 86 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); 88 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); 153 TH_LOG("Child has PID %d", getpid());
|
H A D | clone3.c | 90 ksft_print_msg("I am the child, my PID is %d\n", getpid()); 95 getpid(), pid); 114 getpid(), flags, size); 117 getpid(), ret, expected); 121 getpid(), ret, expected);
|
/linux-master/tools/perf/tests/ |
H A D | thread-map.c | 31 map = thread_map__new_by_pid(getpid()); 38 perf_thread_map__pid(map, 0) == getpid()); 72 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); 80 perf_thread_map__pid(threads, 0) == getpid()); 98 threads = thread_map__new_by_pid(getpid()); 116 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0);
|
H A D | keep-tracking.c | 46 (pid_t)event->comm.pid == getpid() && 47 (pid_t)event->comm.tid == getpid() && 81 threads = thread_map__new(-1, getpid(), UINT_MAX);
|
/linux-master/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpupower-monitor.h | 87 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { 90 return sched_setaffinity(getpid(), sizeof(set), &set);
|
/linux-master/tools/testing/selftests/powerpc/signal/ |
H A D | sigreturn_vdso.c | 89 kill(getpid(), SIGUSR1); 101 kill(getpid(), SIGUSR1); 117 kill(getpid(), SIGUSR1);
|
/linux-master/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_inherit_test.c | 27 srand(getpid());
|
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | za-fork.c | 79 ksft_print_msg("PID: %d\n", getpid());
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_test.c | 385 getpid(), syscall(SYS_gettid)); 391 getpid(), syscall(SYS_gettid)); 430 ksft_print_msg("Child (pidfd): starting. pid %d tid %ld\n", getpid(), 450 ksft_print_msg("Parent: pid: %d\n", getpid()); 484 getpid(), syscall(SYS_gettid)); 486 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); 495 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); 523 ksft_print_msg("Parent: pid: %d\n", getpid());
|