Searched refs:getpid (Results 1 - 25 of 237) sorted by relevance

12345678910

/linux-master/tools/testing/selftests/arm64/abi/
H A Dtpidr2.c76 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 Dstack_var_off.c18 skel->bss->test_pid = getpid();
H A Dprog_array_init.c16 skel->rodata->my_pid = getpid();
H A Dtimer_crash.c17 skel->bss->pid = getpid();
H A Dtask_fd_query_rawtp.c22 /* 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 Dexhandler.c28 skel->bss->test_pid = getpid();
H A Dcore_retro.c9 int err, zero = 0, res, my_pid = getpid();
H A Dtask_under_cgroup.c25 skel->rodata->local_pid = getpid();
26 skel->bss->remote_pid = getpid();
H A Dmap_btf.c22 skel->bss->pid = getpid();
69 skel->bss->pid = getpid();
H A Dpercpu_alloc.c22 skel->bss->my_pid = getpid();
55 skel->bss->my_pid = getpid();
90 skel->bss->my_pid = getpid();
H A Dskc_to_unix_sock.c20 skel->rodata->my_pid = getpid();
H A Dread_vsyscall.c42 skel->bss->target_pid = getpid();
H A Dtest_lsm.c43 *monitored_pid = getpid();
75 skel->bss->monitored_pid = getpid();
H A Duprobe_autoattach.c30 skel->bss->test_pid = getpid();
35 skel->bss->test_pid = getpid();
/linux-master/tools/testing/selftests/bpf/map_tests/
H A Dtask_storage_map.c88 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 Dclone3_set_tid.c67 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 Dclone3_cap_checkpoint_restore.c61 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 Dclone3.c90 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 Dthread-map.c31 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 Dkeep-tracking.c46 (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 Dcpupower-monitor.h87 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 Dsigreturn_vdso.c89 kill(getpid(), SIGUSR1);
101 kill(getpid(), SIGUSR1);
117 kill(getpid(), SIGUSR1);
/linux-master/tools/testing/selftests/powerpc/dscr/
H A Ddscr_inherit_test.c27 srand(getpid());
/linux-master/tools/testing/selftests/arm64/fp/
H A Dza-fork.c79 ksft_print_msg("PID: %d\n", getpid());
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_test.c385 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());

Completed in 504 milliseconds

12345678910