Home
last modified time | relevance | path

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

12345678910>>...58

/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_002.cpp41 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in Testcase()
47 ret = sched_getparam(getpid(), &param); in Testcase()
51 ret = sched_getscheduler(getpid()); in Testcase()
55 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
58 ret = sched_getparam(getpid(), &param); in Testcase()
63 ret = sched_setparam(getpid(), &param); in Testcase()
66 ret = getpriority(PRIO_PROCESS, getpid()); in Testcase()
69 ret = setpriority(PRIO_PROCESS, getpid(), currProcessPri); in Testcase()
72 ret = getpriority(PRIO_PROCESS, getpid()); in Testcase()
76 ret = sched_setscheduler(getpid(), CURRENT_PROCESS_POLIC in Testcase()
[all...]
H A Dprocess_test_001.cpp44 ret = sched_getparam(getpid(), NULL); in Testcase()
54 ret = sched_setparam(getpid(), NULL); in Testcase()
64 ret = sched_setparam(getpid(), &param); in Testcase()
75 ret = getpriority(PRIO_USER, getpid()); in Testcase()
107 ret = sched_setparam(getpid(), &param); in Testcase()
113 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
125 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in Testcase()
130 ret = sched_getscheduler(getpid()); in Testcase()
144 ret = sched_setscheduler(getpid(), SCHED_FIFO, &param); in Testcase()
H A Dprocess_test_043.cpp38 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in Testcase()
60 priority = setpriority(PRIO_USER + count, getpid(), currProcessPri); in Testcase()
70 priority = setpriority(-count, getpid(), currProcessPri); in Testcase()
95 ret = sched_setscheduler(getpid(), SCHED_RR - count, &param); in Testcase()
100 ret = sched_setscheduler(getpid(), SCHED_RR + count, &param); in Testcase()
106 priority = setpriority(PRIO_PGRP, getpid(), currProcessPri); in Testcase()
111 priority = setpriority(PRIO_USER, getpid(), currProcessPri); in Testcase()
/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...]
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/abi/
H A Dtpidr2.c76 set_tpidr2(getpid()); in write_read()
78 return getpid() == get_tpidr2(); in write_read()
84 set_tpidr2(getpid()); in write_sleep_read()
88 return getpid() == get_tpidr2(); in write_sleep_read()
101 set_tpidr2(getpid()); in write_fork_read()
103 oldpid = getpid(); in write_fork_read()
114 set_tpidr2(getpid()); in write_fork_read()
115 if (get_tpidr2() == getpid()) { in write_fork_read()
150 if (getpid() != get_tpidr2()) { in write_fork_read()
183 parent = getpid(); in write_clone_read()
[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/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/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...]
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A DIt_process_plimits_pid_003.cpp66 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in ItProcessPlimitsPid003()
69 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in ItProcessPlimitsPid003()
72 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003()
75 ret = sched_setparam(getpid(), &param); in ItProcessPlimitsPid003()
79 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in ItProcessPlimitsPid003()
83 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003()
87 ret = sched_setparam(getpid(), &param); in ItProcessPlimitsPid003()
/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/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()
/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()
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/
H A Dpthread_test_027.cpp44 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
47 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
54 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, &param); in ChildProcess()
57 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
60 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
H A Dpthread_test_020.cpp43 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
46 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
53 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, &param); in ChildProcess()
56 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
59 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
H A Dpthread_test_026.cpp44 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
47 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
54 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, &param); in ChildProcess()
57 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
60 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c69 getpid(), set_tid[0]); in call_clone3_set_tid()
72 getpid()); in call_clone3_set_tid()
93 if (set_tid[0] != getpid()) in call_clone3_set_tid()
100 getpid(), pid); in call_clone3_set_tid()
130 getpid(), set_tid[0], flags); in test_clone3_set_tid()
135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid()
139 getpid(), ret, expected); in test_clone3_set_tid()
143 getpid(), ret, expected); in test_clone3_set_tid()
259 ksft_print_msg("Child has PID %d\n", getpid()); in main()
306 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main()
[all...]
H A Dclone3_cap_checkpoint_restore.c63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
65 if (set_tid[0] != getpid()) in call_clone3_set_tid()
70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
155 TH_LOG("Child has PID %d", getpid()); in TEST()
H A Dclone3.c89 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3()
94 getpid(), pid); in call_clone3()
113 getpid(), flags, size); in test_clone3()
116 getpid(), ret, expected); in test_clone3()
120 getpid(), ret, expected); in test_clone3()
124 getpid(), ret, expected); in test_clone3()
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c69 getpid(), set_tid[0]); in call_clone3_set_tid()
72 getpid()); in call_clone3_set_tid()
93 if (set_tid[0] != getpid()) in call_clone3_set_tid()
100 getpid(), pid); in call_clone3_set_tid()
130 getpid(), set_tid[0], flags); in test_clone3_set_tid()
135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid()
139 getpid(), ret, expected); in test_clone3_set_tid()
143 getpid(), ret, expected); in test_clone3_set_tid()
259 ksft_print_msg("Child has PID %d\n", getpid()); in main()
306 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main()
[all...]
/drivers/peripheral/camera/hal_c/hdi_cif/include/
H A Dcamera.h48 pid_t pid = getpid(); \
57 pid_t pid = getpid(); \
66 pid_t pid = getpid(); \
75 pid_t pid = getpid(); \
84 pid_t pid = getpid(); \

Completed in 9 milliseconds

12345678910>>...58