Home
last modified time | relevance | path

Searched refs:getpid (Results 1 – 25 of 1357) sorted by relevance

12345678910>>...55

/external/ltp/testcases/kernel/syscalls/open/
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 …]
/external/ltp/testcases/kernel/mem/mtest07/
Dshm_test.c72 dprt("pid[%d]: exiting with %d\n", getpid(),exit_val); \
133 getpid(), shm_id, shm_addr, cmd); in rm_shared_mem()
135 dprt("pid[%d]: rm_shared_mem(): shmctl unable to remove shm_id[%d]\n", getpid(), shm_id); in rm_shared_mem()
142 dprt("pid[%d]:rm_shared_mem(): shmdt unable to detach addr = %#x\n", getpid(), shm_addr); in rm_shared_mem()
186 getpid(), (int)locargs[1]); in shmat_rd_wr()
193 getpid()); in shmat_rd_wr()
199 "success got segment id %d\n", getpid(), shm_id); in shmat_rd_wr()
206 getpid(), (long)shmat_addr); in shmat_rd_wr()
210 dprt("pid[%d]: do_shmat_shmadt(): content of memory shmat_addr = %s\n", getpid(), shmat_addr); in shmat_rd_wr()
214 getpid(), (long)shmat_addr); in shmat_rd_wr()
[all …]
/external/ltp/testcases/kernel/sched/tool/
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 …]
/external/ltp/testcases/kernel/syscalls/eventfd2/
Deventfd2_03.c67 getpid(), fd, cntr); in xsem_wait()
82 fprintf(stdout, "[%u] posting 1 on %d\n", getpid(), fd1); in sem_player()
85 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player()
88 fprintf(stdout, "[%u] posting 1 on %d\n", getpid(), fd1); in sem_player()
91 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player()
94 fprintf(stdout, "[%u] posting 5 on %d\n", getpid(), fd1); in sem_player()
97 fprintf(stdout, "[%u] waiting 5 times on %d\n", getpid(), fd2); in sem_player()
/external/ltp/testcases/kernel/fs/doio/
Dforker.c186 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]);
/external/ltp/lib/newlib_tests/
Dtest05.c27 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup()
32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup()
41 tst_res(TPASS, "Child (%i) reports", getpid()); in do_test()
44 tst_res(TPASS, "Parent (%i) reports", getpid()); in do_test()
Dtest06.c27 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup()
32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup()
41 tst_brk(TBROK, "Child pid %i", getpid()); in do_test()
44 tst_res(TPASS, "Parent pid %i", getpid()); in do_test()
Dtest07.c27 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup()
32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup()
41 tst_res(TPASS, "Child (%i)", getpid()); in do_test()
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dlog.py89 tid = os.getpid()
91 "pid": os.getpid(), "tid": threading.current_thread().ident,
147 if not hasattr(_tls, 'pid') or _tls.pid != os.getpid():
148 _tls.pid = os.getpid()
153 _tls.pid = os.getpid()
157 tid = os.getpid()
/external/ltp/testcases/kernel/connectors/pec/
Devent_generator.c89 printf("exec pid: %d\n", getpid()); in gen_exec()
105 printf("fork parent: %d, child: %d\n", getppid(), getpid()); in gen_fork()
124 printf("exit pid: %d exit_code: %d\n", getpid(), 0); in gen_exit()
138 printf("uid pid: %d euid: %d\n", getpid(), ltp_uid); in gen_uid()
147 printf("gid pid: %d egid: %d\n", getpid(), ltp_gid); in gen_gid()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
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()
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()
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()
D17-7.c37 if (sched_getparam(getpid(), &param) == -1) { in main()
43 old_policy = sched_getscheduler(getpid()); in main()
75 if (sched_getparam(getpid(), &param) != 0) { in main()
80 new_policy = sched_getscheduler(getpid()); in main()
D4-1.c26 if (sched_getparam(getpid(), &param) != 0) { in main()
31 old_policy = sched_getscheduler(getpid()); in main()
49 if (sched_getparam(getpid(), &param) != 0) { in main()
54 test_policy = sched_getscheduler(getpid()); in main()
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()
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()
/external/python/cpython2/Lib/multiprocessing/
Dprocess.py101 self._parent_pid = os.getpid()
121 assert self._parent_pid == os.getpid(), \
143 assert self._parent_pid == os.getpid(), 'can only join a child process'
155 assert self._parent_pid == os.getpid(), 'can only test a child process'
211 return os.getpid()
220 elif self._parent_pid != os.getpid():
/external/python/cpython3/Lib/multiprocessing/
Dprocess.py77 self._parent_pid = os.getpid()
100 assert self._parent_pid == os.getpid(), \
119 assert self._parent_pid == os.getpid(), 'can only join a child process'
131 assert self._parent_pid == os.getpid(), 'can only test a child process'
187 return os.getpid()
207 elif self._parent_pid != os.getpid():
/external/ltp/testcases/kernel/syscalls/mknodat/
Dmknodat01.c133 sprintf(testfilepath, PATHNAME"/mknodattestfile%d", getpid()); in setup()
134 sprintf(testfile, "mknodattestfile%d", getpid()); in setup()
135 sprintf(testfile2, "mknodattestfile2%d", getpid()); in setup()
136 sprintf(testfile3, "%s/mknodattestfile3%d", tmpdir, getpid()); in setup()
/external/ltp/testcases/kernel/syscalls/rename/
Drename01.c186 sprintf(fname, "./tfile_%d", getpid()); in setup()
187 sprintf(mname, "./rnfile_%d", getpid()); in setup()
188 sprintf(fdir, "./tdir_%d", getpid()); in setup()
189 sprintf(mdir, "./rndir_%d", getpid()); in setup()
Drename03.c187 sprintf(fname, "./tfile_%d", getpid()); in setup()
188 sprintf(mname, "./rnfile_%d", getpid()); in setup()
189 sprintf(fdir, "./tdir_%d", getpid()); in setup()
190 sprintf(mdir, "./rndir_%d", getpid()); in setup()
Drename09.c244 sprintf(fdir, "tdir_%d", getpid()); in setup()
245 sprintf(mdir, "rndir_%d", getpid()); in setup()
246 sprintf(fname, "%s/tfile_%d", fdir, getpid()); in setup()
247 sprintf(mname, "%s/rnfile_%d", mdir, getpid()); in setup()
/external/python/cpython2/Python/
Dthread_sgi.h50 my_pid = getpid(); /* so that we know which is the main thread */ in PyThread__init_thread()
84 mypid = getpid(); in clean_threads()
159 pidlist[maxpidindex].parent = getpid(); in PyThread_start_new_thread()
172 return getpid(); in PyThread_get_thread_ident()
183 if (getpid() == my_pid) { in PyThread_exit_thread()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_utils.h33 snprintf(name, sizeof(name), "/proc/%i/task/", getpid()); in wait_for_threads()
39 if (atoi(dent->d_name) == getpid() || atoi(dent->d_name) == 0) in wait_for_threads()
43 getpid(), dent->d_name); in wait_for_threads()

12345678910>>...55