Home
last modified time | relevance | path

Searched refs:getpid (Results 326 - 350 of 1562) sorted by relevance

1...<<11121314151617181920>>...63

/third_party/ltp/lib/newlib_tests/
H A Dtest_children_cleanup.c18 pid_t child_pid, main_pid = getpid(); in run()
/third_party/ltp/lib/
H A Dtst_coredump.c32 getpid()); in tst_no_corefile()
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns06.c36 pid_t pid = getpid(); in run()
/third_party/ltp/testcases/kernel/controllers/pids/
H A Dpids_task1.c49 fprintf(f, "%i\n", getpid()); in main()
/third_party/musl/porting/linux/user/src/thread/
H A Dpthread_kill.c16 r = t->tid ? -__syscall(__NR_tgkill, getpid(), t->tid, sig) in pthread_kill()
/third_party/ltp/testcases/kernel/syscalls/getppid/
H A Dgetppid02.c9 * 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 Dpidfd_open01.c25 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 Dgetpid01.c9 * 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 D1-1.c27 result = sched_getparam(getpid(), &param); in main()
H A D2-1.c32 result1 = sched_getparam(getpid(), &param1); in main()
41 "and pid == getpid().\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/
H A D6-1.c29 sprintf(semname, "/" FUNCTION "_" TEST "_%d", getpid()); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
H A D10-1.c29 if (-1 == sigqueue(getpid(), -1, value)) { in main()
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dunwinder_test.cpp140 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 Dmemory_test.cpp249 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 Dfreeze_detector_test.cpp55 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 Daccesstokenid_test.cpp174 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 Dkprobe_multi_test.c50 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 Dexhandler.c28 skel->bss->test_pid = getpid(); in test_exhandler()
/kernel/linux/linux-6.6/samples/bpf/
H A Dtask_fd_query_user.c101 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 Dfcntl17.c128 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 Dfanotify09.c285 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 Dkill10.c298 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 Dmain.cpp32 int32_t pid = getpid(); in DoGetCrashFd()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/
H A Ddscr_explicit_test.c26 srand(getpid()); in dscr_explicit()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dcore_retro.c9 int err, zero = 0, res, duration = 0, my_pid = getpid(); in test_core_retro()

Completed in 14 milliseconds

1...<<11121314151617181920>>...63