/third_party/ltp/lib/newlib_tests/ |
H A D | test_children_cleanup.c | 18 pid_t child_pid, main_pid = getpid(); in run()
|
/third_party/ltp/lib/ |
H A D | tst_coredump.c | 32 getpid()); in tst_no_corefile()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns06.c | 36 pid_t pid = getpid(); in run()
|
/third_party/ltp/testcases/kernel/controllers/pids/ |
H A D | pids_task1.c | 49 fprintf(f, "%i\n", getpid()); in main()
|
/third_party/musl/porting/linux/user/src/thread/ |
H A D | pthread_kill.c | 16 r = t->tid ? -__syscall(__NR_tgkill, getpid(), t->tid, sig) in pthread_kill()
|
/third_party/ltp/testcases/kernel/syscalls/getppid/ |
H A D | getppid02.c | 9 * Check that getppid() in child returns the same pid as getpid() in parent. 22 proc_id = getpid(); in verify_getppid()
|
/third_party/ltp/testcases/kernel/syscalls/pidfd_open/ |
H A D | pidfd_open01.c | 25 TST_EXP_FD_SILENT(pidfd_open(getpid(), 0), "pidfd_open(getpid(), 0)"); in run() 33 tst_brk(TFAIL, "pidfd_open(getpid(), 0) didn't set close-on-exec flag"); in run() 35 tst_res(TPASS, "pidfd_open(getpid(), 0) passed"); in run()
|
/third_party/ltp/testcases/kernel/syscalls/getpid/ |
H A D | getpid01.c | 9 * Verify that getpid() system call returns process ID in range 2 ... PID_MAX 25 pid = getpid(); in verify_getpid() 29 tst_res(TPASS, "getpid() returns %d", pid); in verify_getpid() 32 "getpid() returns out of range: %d", pid); in verify_getpid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
H A D | 1-1.c | 27 result = sched_getparam(getpid(), ¶m); in main()
|
H A D | 2-1.c | 32 result1 = sched_getparam(getpid(), ¶m1); in main() 41 "and pid == getpid().\n"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/ |
H A D | 6-1.c | 29 sprintf(semname, "/" FUNCTION "_" TEST "_%d", getpid()); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
H A D | 10-1.c | 29 if (-1 == sigqueue(getpid(), -1, value)) { in main()
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | unwinder_test.cpp | 140 pid_t pid = getpid(); in HWTEST_F() 198 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid(); in HWTEST_F() 234 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid(); in HWTEST_F() 293 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid(); in HWTEST_F() 338 auto maps = DfxMaps::Create(getpid()); in HWTEST_F() 417 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid(); in HWTEST_F() 453 auto maps = DfxMaps::Create(getpid()); in HWTEST_F() 490 GTEST_LOG_(INFO) << "pid: " << child << ", ppid:" << getpid(); in HWTEST_F() 950 auto unwinder = std::make_shared<Unwinder>(getpid()); in HWTEST_F()
|
H A D | memory_test.cpp | 249 static pid_t pid = getpid(); in HWTEST_F() 293 static pid_t pid = getpid(); in HWTEST_F() 342 static pid_t pid = getpid(); in HWTEST_F() 384 static pid_t pid = getpid(); in HWTEST_F() 422 static pid_t pid = getpid(); in HWTEST_F()
|
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
H A D | freeze_detector_test.cpp | 55 sysEvent->SetEventValue("pid_", getpid()); in makeEvent() 59 sysEvent->SetEventValue("PID", getpid()); in makeEvent() 185 sysEvent->SetEventValue("pid_", getpid()); in HWTEST_F() 189 sysEvent->SetEventValue("PID", getpid()); in HWTEST_F()
|
/kernel/linux/build/test/unittest/accesstokenid/ |
H A D | accesstokenid_test.cpp | 174 tinfo->pid = getpid(); in CheckChildThreadInheritance() 191 tinfo->pid = getpid(); in CheckChildThreadSetIndepent() 292 tinfo.pid = getpid(); in HWTEST_F() 334 tinfo.pid = getpid(); in HWTEST_F()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | kprobe_multi_test.c | 50 skel->bss->pid = getpid(); in test_skel_api() 70 skel->bss->pid = getpid(); in test_link_api() 146 skel->bss->pid = getpid(); in test_attach_api() 236 skel->bss->pid = getpid(); in test_attach_api_fails()
|
H A D | exhandler.c | 28 skel->bss->test_pid = getpid(); in test_exhandler()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | task_fd_query_user.c | 101 err = bpf_task_fd_query(getpid(), event_fd, 0, buf, &len, in test_debug_fs_kprobe() 164 CHECK_PERROR_RET(bpf_task_fd_query(getpid(), fd, 0, buf, buf_len, in test_nondebug_fs_kuprobe_common() 243 res = snprintf(event_alias, sizeof(event_alias), "test_%d", getpid()); in test_debug_fs_uprobe() 280 err = bpf_task_fd_query(getpid(), kfd, 0, buf, &len, in test_debug_fs_uprobe()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl17.c | 128 parent_pid = getpid(); in setup() 195 tst_resm(TINFO, "child 1 pid %d locked", getpid()); in do_child1() 227 tst_resm(TINFO, "child 2 pid %d locked", getpid()); in do_child2() 265 tst_resm(TINFO, "child 3 pid %d locked", getpid()); in do_child3()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify09.c | 285 sprintf(procfdinfo, "/proc/%d/fdinfo/%d", (int)getpid(), fd); in check_ignore_mask() 343 } else if (event->pid != getpid()) { in verify_event() 347 (unsigned int)getpid(), event->fd, filename); in verify_event() 493 sprintf(fname, "tfile_%d", getpid()); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill10.c | 298 mypid = getpid(); in setup() 458 mypid = getpid(); in fork_pgrps() 480 printf("%d: Manager cleared to fork\n", getpid()); in set_create_procs() 701 mypid = getpid(); in fork_procs()
|
/base/hiviewdfx/faultloggerd/services/ |
H A D | main.cpp | 32 int32_t pid = getpid(); in DoGetCrashFd()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_explicit_test.c | 26 srand(getpid()); in dscr_explicit()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | core_retro.c | 9 int err, zero = 0, res, duration = 0, my_pid = getpid(); in test_core_retro()
|