/third_party/ltp/testcases/kernel/syscalls/open/ |
H A D | open07.c | 164 sprintf(file1, "open03.1.%d", getpid()); in setupfunc_test1() 165 sprintf(file2, "open03.2.%d", getpid()); in setupfunc_test1() 177 sprintf(file1, "open03.3.%d", getpid()); in setupfunc_test2() 178 sprintf(file2, "open03.4.%d", getpid()); in setupfunc_test2() 190 sprintf(file1, "open03.5.%d", getpid()); in setupfunc_test3() 191 sprintf(file2, "open03.6.%d", getpid()); in setupfunc_test3() 192 sprintf(file3, "open03.7.%d", getpid()); in setupfunc_test3() 206 sprintf(file1, "open03.8.%d", getpid()); in setupfunc_test4() 207 sprintf(file2, "open03.9.%d", getpid()); in setupfunc_test4() 208 sprintf(file3, "open03.10.%d", getpid()); in setupfunc_test4() [all...] |
/third_party/musl/libc-test/src/functionalext/trace/ |
H A D | trace_marker.c | 122 int buf_begin_fd = snprintf(buf_begin, BUFFER_LEN, "B|%d|%s", getpid(), "Musl_Trace_Marker_0010"); in trace_marker_0010() 128 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0010() 173 int buf_async_begin_fd = snprintf(buf_async_begin, BUFFER_LEN, "S|%d|%s|%s %d", getpid(), "async_begin_0200", "trace_async" , 1); in trace_marker_0020() 179 int buf_async_end_fd = snprintf(buf_async_end, BUFFER_LEN, "F|%d|%s|%s %d", getpid(), "async_end_0200", "trace_async" , 1); in trace_marker_0020() 224 int buf_begin_fd = snprintf(buf_count, BUFFER_LEN, "C|%d|%s %d", getpid(), "traceCount", traceCount); in trace_marker_0030() 264 int pidChild = getpid(); in trace_marker_0040() 277 int buf_begin_fd = snprintf(buf_begin, BUFFER_LEN, "B|%d|%s", getpid(), "Trace_Marker0400_Forkfir"); in trace_marker_0040() 283 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0040() 315 int buf_begin_fd = snprintf(buf_begin, BUFFER_LEN, "B|%d|%s", getpid(), "Trace_Marker0400_Forksec"); in trace_marker_0040() 321 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0040() [all...] |
/third_party/ltp/testcases/kernel/mem/mtest07/ |
H A D | shm_test.c | 72 dprt("pid[%d]: exiting with %d\n", getpid(),exit_val); \ 141 getpid(), shm_id, shm_addr, cmd); in rm_shared_mem() 143 dprt("pid[%d]: rm_shared_mem(): shmctl unable to remove shm_id[%d]\n", getpid(), shm_id); in rm_shared_mem() 150 dprt("pid[%d]:rm_shared_mem(): shmdt unable to detach addr = %#x\n", getpid(), shm_addr); in rm_shared_mem() 191 getpid(), args->shmkey); in shmat_rd_wr() 198 getpid()); in shmat_rd_wr() 204 "success got segment id %d\n", getpid(), shm_id); in shmat_rd_wr() 211 getpid(), (long)shmat_addr); in shmat_rd_wr() 215 dprt("pid[%d]: do_shmat_shmadt(): content of memory shmat_addr = %s\n", getpid(), shmat_addr); in shmat_rd_wr() 219 getpid(), (lon in shmat_rd_wr() [all...] |
/third_party/rust/crates/rustix/tests/process/ |
H A D | id.rs | 41 assert_eq!(process::getpid(), process::getpid()); in test_getpid() 44 process::getpid().as_raw_nonzero().get() as libc::pid_t, in test_getpid() 45 libc::getpid() in test_getpid() 47 assert_eq!(process::getpid().is_init(), libc::getpid() == 1); in test_getpid() 71 process::getpgid(Some(process::getpid())), in test_getpgid() 72 process::getpgid(Some(process::getpid())) in test_getpgid() 84 process::getpgid(Some(process::getpid())) in test_getpgid() 88 libc::getpgid(libc::getpid()) in test_getpgid() [all...] |
/third_party/musl/libc-test/src/functionalext/info/ |
H A D | fatal_message.c | 74 pidChild = getpid(); in fatal_message_0020() 108 pidChild = getpid(); in fatal_message_0030() 110 pidParent = getpid(); in fatal_message_0030() 118 pidCChild = getpid(); in fatal_message_0030() 124 pidCParent = getpid(); in fatal_message_0030() 159 pidChild = getpid(); in fatal_message_0040() 161 pidParent = getpid(); in fatal_message_0040() 169 pidCChild = getpid(); in fatal_message_0040() 174 pidCParent = getpid(); in fatal_message_0040() 246 pidChild = getpid(); in fatal_message_0060() [all...] |
/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | forker.c | 112 #include <unistd.h> /* fork, getpid, sleep */ 186 getpid(); in forker() 212 getpid(); in forker() 262 printf("Starting Pid = %d\n", getpid()); 264 printf("After background() ret:%d, pid = %d\n", ret, getpid()); 269 ncopies, mode, argv[0], ret, getpid()); 272 getpid(), Forker_npids); 275 printf("%d ind:%-2d pid:%d\n", getpid(), ind, Forker_pids[ind]);
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | getpriority.c | 33 int ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0100() 38 ret = getpriority(PRIO_PGRP, getpgid(getpid())); in getpriority_0100() 58 ret = setpriority(PRIO_PROCESS, getpid(), i); in getpriority_0200() 62 ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0200() 69 ret = setpriority(PRIO_PGRP, getpgid(getpid()), i); in getpriority_0200() 73 ret = getpriority(PRIO_PGRP, getpgid(getpid())); in getpriority_0200() 103 ret = getpriority(TEST_WHO_ERROR, getpid()); in getpriority_0300()
|
/third_party/ltp/testcases/kernel/sched/tool/ |
H A D | trace_sched.c | 145 sprintf(filename, "/proc/%d/stat", getpid()); in get_proc_num() 210 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 230 if ((sched_setscheduler(getpid(), sched_policy, &ssp)) == -1) { in thread_func() 232 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 239 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 243 if ((get_priority = sched_getparam(getpid(), &gsp)) == -1) { in thread_func() 245 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 252 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 263 "Processor last execed on = %d\n\n", getpid(), in thread_func() 271 locargptr->procs_id = getpid(); in thread_func() [all...] |
/third_party/musl/porting/linux/user/src/trace/ |
H A D | trace_marker.c | 107 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "B|%d|%s", getpid(), message); in trace_marker_begin() 109 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "B|%d|%s %s", getpid(), message, value); in trace_marker_begin() 138 int len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "E|%d", getpid()); in trace_marker_end() 168 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "S|%d|%s %d", getpid(), message, taskId); in trace_marker_async_begin() 170 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "S|%d|%s|%s %d", getpid(), message, value, taskId); in trace_marker_async_begin() 201 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "F|%d|%s %d", getpid(), message, taskId); in trace_marker_async_end() 203 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "F|%d|%s|%s %d", getpid(), message, value, taskId); in trace_marker_async_end() 231 int len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "C|%d|%s %d", getpid(), message, value); in trace_marker_count()
|
/third_party/musl/src/trace/linux/ |
H A D | trace_marker.c | 108 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "B|%d|%s", getpid(), message); in trace_marker_begin() 110 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "B|%d|%s %s", getpid(), message, value); in trace_marker_begin() 139 int len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "E|%d", getpid()); in trace_marker_end() 169 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "S|%d|%s %d", getpid(), message, taskId); in trace_marker_async_begin() 171 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "S|%d|%s|%s %d", getpid(), message, value, taskId); in trace_marker_async_begin() 202 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "F|%d|%s %d", getpid(), message, taskId); in trace_marker_async_end() 204 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "F|%d|%s|%s %d", getpid(), message, value, taskId); in trace_marker_async_end() 232 int len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "C|%d|%s %d", getpid(), message, value); in trace_marker_count()
|
/third_party/ltp/lib/newlib_tests/ |
H A D | test05.c | 14 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup() 19 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup() 28 tst_res(TPASS, "Child (%i) reports", getpid()); in do_test() 31 tst_res(TPASS, "Parent (%i) reports", getpid()); in do_test()
|
H A D | test06.c | 14 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup() 19 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup() 28 tst_brk(TBROK, "Child pid %i", getpid()); in do_test() 31 tst_res(TPASS, "Parent pid %i", getpid()); in do_test()
|
H A D | tst_cgroup02.c | 31 SAFE_CG_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test() 48 SAFE_CG_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test() 53 SAFE_CG_PRINTF(tst_cg_drain, "cgroup.procs", "%d", getpid()); in do_test() 74 "cgroup.procs", "%d", getpid()); in cleanup()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | getprocpid.c | 36 EXPECT_EQ("getprocpid_0100", pid1, getpid()); in getprocpid_0100() 47 EXPECT_EQ("getprocpid_0200", pid1, getpid()); in getprocpid_0200() 52 if (pid2 != getpid()) { in getprocpid_0200() 68 if (getpid() != 1) { in child_func() 87 EXPECT_EQ("getprocpid_0300", pid1, getpid()); in getprocpid_0300() 163 if (getpid() != 1) { in child_func_tid()
|
H A D | process_vm.c | 36 ssize_t rev = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_writev_0100() 61 ssize_t rev = process_vm_readv(getpid(), local, 2, remote, 2, 0); in process_vm_writev_0200() 83 ssize_t rev = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_writev_0300() 103 int ret = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_readv_0100() 123 int ret = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_readv_0200() 143 int ret = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_readv_0300()
|
H A D | prlimit.c | 32 int ret = prlimit(getpid(), RLIMIT_STACK, &new_limit, NULL); in prlimit_0100() 34 ret = prlimit(getpid(), RLIMIT_STACK, NULL, &old_limit); in prlimit_0100() 50 int ret = prlimit(getpid(), -1, &new_limit, NULL); in prlimit_0200() 54 ret = prlimit(getpid(), RLIMIT_STACK, &new_limit, NULL); in prlimit_0200()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 17-3.c | 37 if (sched_getparam(getpid(), ¶m) != 0) { in main() 43 old_policy = sched_getscheduler(getpid()); in main() 60 if (sched_getparam(getpid(), ¶m) != 0) { in main() 65 new_policy = sched_getscheduler(getpid()); in main()
|
H A D | 17-2.c | 37 if (sched_getparam(getpid(), ¶m) != 0) { in main() 43 old_policy = sched_getscheduler(getpid()); in main() 61 if (sched_getparam(getpid(), ¶m) != 0) { in main() 66 new_policy = sched_getscheduler(getpid()); in main()
|
H A D | 17-4.c | 36 if (sched_getparam(getpid(), ¶m) == -1) { in main() 42 old_policy = sched_getscheduler(getpid()); in main() 57 if (sched_getparam(getpid(), ¶m) != 0) { in main() 62 new_policy = sched_getscheduler(getpid()); in main()
|
H A D | 17-1.c | 60 if (sched_getparam(getpid(), ¶m) != 0) { in main() 66 old_policy = sched_getscheduler(getpid()); in main() 86 if (sched_getparam(getpid(), ¶m) != 0) { in main() 91 new_policy = sched_getscheduler(getpid()); in main()
|
H A D | 17-6.c | 76 if (sched_getparam(getpid(), ¶m) == -1) { in main() 82 old_policy = sched_getscheduler(getpid()); in main() 98 if (sched_getparam(getpid(), ¶m) != 0) { in main() 103 new_policy = sched_getscheduler(getpid()); in main()
|
H A D | 17-7.c | 37 if (sched_getparam(getpid(), ¶m) == -1) { in main() 43 old_policy = sched_getscheduler(getpid()); in main() 75 if (sched_getparam(getpid(), ¶m) != 0) { in main() 80 new_policy = sched_getscheduler(getpid()); in main()
|
H A D | 4-1.c | 26 if (sched_getparam(getpid(), ¶m) != 0) { in main() 31 old_policy = sched_getscheduler(getpid()); in main() 49 if (sched_getparam(getpid(), ¶m) != 0) { in main() 54 test_policy = sched_getscheduler(getpid()); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/misc_gtest/ |
H A D | misc_getpriority_test.cpp | 36 int result1 = setpriority(PRIO_PROCESS, getpid(), PRIORITY); in HWTEST_F() 38 int result2 = getpriority(PRIO_PROCESS, getpid()); in HWTEST_F() 51 int result1 = setpriority(PRIO_PGRP, getpgid(getpid()), PRIORITY); in HWTEST_F() 53 int result2 = getpriority(PRIO_PGRP, getpgid(getpid())); in HWTEST_F()
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_ptrace.rs | 11 use nix::unistd::getpid; 23 let err = ptrace::attach(getpid()).unwrap_err(); in test_ptrace() 34 let err = ptrace::setoptions(getpid(), Options::PTRACE_O_TRACESYSGOOD) in test_ptrace_setoptions() 44 let err = ptrace::getevent(getpid()).unwrap_err(); in test_ptrace_getevent() 53 if let Err(Errno::EOPNOTSUPP) = ptrace::getsiginfo(getpid()) { in test_ptrace_getsiginfo() 64 if let Err(Errno::EOPNOTSUPP) = ptrace::setsiginfo(getpid(), &siginfo) { in test_ptrace_setsiginfo() 87 let err = ptrace::attach(getpid()).unwrap_err(); in test_ptrace_cont() 192 use nix::unistd::getpid; in test_ptrace_syscall() 203 let pid = getpid(); in test_ptrace_syscall()
|