Home
last modified time | relevance | path

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

12345678910>>...48

/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 …]
Dmallocstress.c163 dprt(("pid[%d]: allocate_free: repeat %d, scheme %d\n", getpid(), in allocate_free()
173 dprt(("pid[%d]: allocate_free: loop %d of %d\n", getpid(), loop, in allocate_free()
185 getpid(), loop, repeat, num_alloc, size)); in allocate_free()
222 dprt(("pid[%d]: freeing ptrs[i] %p\n", getpid(), in allocate_free()
227 getpid()); in allocate_free()
/external/ltp/testcases/kernel/syscalls/open/
Dopen07.c163 sprintf(file1, "open03.1.%d", getpid()); in setupfunc_test1()
164 sprintf(file2, "open03.2.%d", getpid()); in setupfunc_test1()
179 sprintf(file1, "open03.3.%d", getpid()); in setupfunc_test2()
180 sprintf(file2, "open03.4.%d", getpid()); in setupfunc_test2()
194 sprintf(file1, "open03.5.%d", getpid()); in setupfunc_test3()
195 sprintf(file2, "open03.6.%d", getpid()); in setupfunc_test3()
196 sprintf(file3, "open03.7.%d", getpid()); in setupfunc_test3()
214 sprintf(file1, "open03.8.%d", getpid()); in setupfunc_test4()
215 sprintf(file2, "open03.9.%d", getpid()); in setupfunc_test4()
216 sprintf(file3, "open03.10.%d", getpid()); in setupfunc_test4()
[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/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/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/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()
D22-1.c38 if (sched_getparam(getpid(), &param) != 0) { in main()
44 new_policy = (sched_getscheduler(getpid()) == SCHED_FIFO) ? in main()
48 if (sched_setscheduler(getpid(), new_policy, &param) == -1) { in main()
/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/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/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/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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D5-1.c25 if (sched_getparam(getpid(), &param) != 0) { in main()
30 policy = sched_getscheduler(getpid()); in main()
45 if (sched_getparam(getpid(), &param) != 0) { in main()
/external/ltp/testcases/kernel/syscalls/rename/
Drename01.c193 sprintf(fname, "./tfile_%d", getpid()); in setup()
194 sprintf(mname, "./rnfile_%d", getpid()); in setup()
195 sprintf(fdir, "./tdir_%d", getpid()); in setup()
196 sprintf(mdir, "./rndir_%d", getpid()); in setup()
/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/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions_unittests.cc122 return RestrictSchedTarget(getpid(), sysno); in EvaluateSyscall()
134 const pid_t pid = getpid(); in SchedGetParamThread()
190 return RestrictPrlimit64(getpid()); in EvaluateSyscall()
199 BPF_ASSERT_EQ(0, sys_prlimit64(getpid(), RLIMIT_AS, NULL, NULL)); in BPF_TEST_C()
207 BPF_ASSERT_NE(kInitPID, getpid()); in BPF_DEATH_TEST_C()

12345678910>>...48