Home
last modified time | relevance | path

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

12345678910>>...53

/base/hiviewdfx/faultloggerd/test/moduletest/
H A Dfaultloggerd_module_test.cpp59 RequestSdkDump(getpid(), getpid()); in HWTEST_F()
60 int32_t pipeFd = RequestPipeFd(getpid(), FaultLoggerPipeType::PIPE_FD_READ_BUF); in HWTEST_F()
62 int32_t ret = RequestDelPipeFd(getpid()); in HWTEST_F()
64 pipeFd = RequestPipeFd(getpid(), FaultLoggerPipeType::PIPE_FD_READ_BUF); in HWTEST_F()
86 std::string cmd = "cat /proc/" + std::to_string(getpid()) + "/maps"; in HWTEST_F()
116 testRequest.pid = getpid(); in HWTEST_F()
148 testRequest.pid = getpid(); in HWTEST_F()
165 RequestSdkDump(getpid(), getpid()); in HWTEST_F()
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/procinfo/
H A Dprocinfo_test.cpp50 ASSERT_EQ(getpid(), procInfo.pid); in HWTEST_F()
63 ASSERT_TRUE(GetTidsByPidWithFunc(getpid(), tids, nullptr)); in HWTEST_F()
76 ASSERT_TRUE(GetProcStatusByPid(getpid(), procInfo)); in HWTEST_F()
79 ASSERT_TRUE(GetTidsByPid(getpid(), tids, nstids)); in HWTEST_F()
81 ASSERT_TRUE(IsThreadInPid(getpid(), nstids[i])); in HWTEST_F()
84 TidToNstid(getpid(), tids[i], nstid); in HWTEST_F()
100 ASSERT_TRUE(TidToNstid(getpid(), gettid(), nstid)); in HWTEST_F()
114 ReadProcessStatus(result, getpid()); in HWTEST_F()
119 ReadProcessWchan(result, getpid(), false, true); in HWTEST_F()
126 ReadProcessName(getpid(), resul in HWTEST_F()
[all...]
/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen07.c164 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/ltp/testcases/kernel/mem/mtest07/
H A Dshm_test.c72 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 Did.rs41 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/trace/
H A Dtrace_marker.c122 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/musl/libc-test/src/functionalext/info/
H A Dfatal_message.c74 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...]
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
H A Ddlp_callback_test.cpp161 OpenDlpFileCallbackManager::GetInstance().AddCallback(getpid(), DEFAULT_USERID, DLP_MANAGER_APP, nullptr); in HWTEST_F()
177 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
181 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
183 res = OpenDlpFileCallbackManager::GetInstance().RemoveCallback(getpid(), callback->AsObject()); in HWTEST_F()
224 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
231 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
244 int32_t res = OpenDlpFileCallbackManager::GetInstance().RemoveCallback(getpid(), nullptr); in HWTEST_F()
260 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
278 getpid(), DEFAULT_USERID, DLP_MANAGER_APP, callback->AsObject()); in HWTEST_F()
280 res = OpenDlpFileCallbackManager::GetInstance().RemoveCallback(getpid(), callbac in HWTEST_F()
[all...]
/third_party/ltp/testcases/kernel/fs/doio/
H A Dforker.c112 #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 Dgetpriority.c33 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 Dtrace_sched.c145 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/ltp/lib/newlib_tests/
H A Dtest05.c14 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 Dtest06.c14 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 Dtst_cgroup02.c31 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/porting/linux/user/src/trace/
H A Dtrace_marker.c107 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 Dtrace_marker.c108 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()
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/stream_manager_test/src/
H A Daudio_stream_manager_unit_test.cpp136 callBackSetResult = g_audioManagerInstance->RegisterAudioRendererEventListener(getpid(), in HWTEST_F()
140 g_audioManagerInstance->UnregisterAudioRendererEventListener(getpid()); in HWTEST_F()
156 callBackSetResult = g_audioManagerInstance->RegisterAudioRendererEventListener(getpid(), in HWTEST_F()
160 g_audioManagerInstance->UnregisterAudioRendererEventListener(getpid()); in HWTEST_F()
163 callBackSetResult = g_audioManagerInstance->RegisterAudioRendererEventListener(getpid(), in HWTEST_F()
167 g_audioManagerInstance->UnregisterAudioRendererEventListener(getpid()); in HWTEST_F()
179 callBackSetResult = g_audioManagerInstance->RegisterAudioRendererEventListener(getpid(), nullptr); in HWTEST_F()
193 callBackSetResult = g_audioManagerInstance->RegisterAudioRendererEventListener(getpid(), nullptr); in HWTEST_F()
197 callBackSetResult = g_audioManagerInstance->RegisterAudioRendererEventListener(getpid(), in HWTEST_F()
201 g_audioManagerInstance->UnregisterAudioRendererEventListener(getpid()); in HWTEST_F()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D17-3.c37 if (sched_getparam(getpid(), &param) != 0) { in main()
43 old_policy = sched_getscheduler(getpid()); in main()
60 if (sched_getparam(getpid(), &param) != 0) { in main()
65 new_policy = sched_getscheduler(getpid()); in main()
H A D17-2.c37 if (sched_getparam(getpid(), &param) != 0) { in main()
43 old_policy = sched_getscheduler(getpid()); in main()
61 if (sched_getparam(getpid(), &param) != 0) { in main()
66 new_policy = sched_getscheduler(getpid()); in main()
H A D17-4.c36 if (sched_getparam(getpid(), &param) == -1) { in main()
42 old_policy = sched_getscheduler(getpid()); in main()
57 if (sched_getparam(getpid(), &param) != 0) { in main()
62 new_policy = sched_getscheduler(getpid()); in main()
H A D17-1.c60 if (sched_getparam(getpid(), &param) != 0) { in main()
66 old_policy = sched_getscheduler(getpid()); in main()
86 if (sched_getparam(getpid(), &param) != 0) { in main()
91 new_policy = sched_getscheduler(getpid()); in main()
H A D17-6.c76 if (sched_getparam(getpid(), &param) == -1) { in main()
82 old_policy = sched_getscheduler(getpid()); in main()
98 if (sched_getparam(getpid(), &param) != 0) { in main()
103 new_policy = sched_getscheduler(getpid()); in main()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dprlimit.c32 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()
H A Dgetprocpid.c36 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 Dprocess_vm.c36 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()

Completed in 11 milliseconds

12345678910>>...53