Home
last modified time | relevance | path

Searched refs:getpid (Results 1 – 25 of 1363) 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/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/
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()
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()
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/strace/tests-m32/
Dinject-nf.c43 # define getpid getpgrp macro
53 # define INVOKE_SC(err) getpid()
60 extern kernel_ulong_t getpid(void);
68 (ac == 1) ? getpid() : strtoull(av[1], NULL, 0); in main()
/external/strace/tests-mx32/
Dinject-nf.c43 # define getpid getpgrp macro
53 # define INVOKE_SC(err) getpid()
60 extern kernel_ulong_t getpid(void);
68 (ac == 1) ? getpid() : strtoull(av[1], NULL, 0); in main()
/external/strace/tests/
Dinject-nf.c43 # define getpid getpgrp macro
53 # define INVOKE_SC(err) getpid()
60 extern kernel_ulong_t getpid(void);
68 (ac == 1) ? getpid() : strtoull(av[1], NULL, 0); in main()
/external/honggfuzz/libhfnetdriver/
Dnetdriver.c56 (int)getpid(), ret); in netDriver_mainProgram()
102 (int)getpid()); in netDriver_initNsIfNeeded()
229 (int)getpid()); in HonggfuzzNetDriverArgsForServer()
254 (int)getpid(), portno, portno); in netDriver_waitForServerReady()
285 getpid(), HFND_SKIP_FUZZING_ENV); in LLVMFuzzerInitialize()
289 getpid()); in LLVMFuzzerInitialize()
304 (int)getpid(), hfnd_globals.tcp_port, HFND_TCP_PORT_ENV); in LLVMFuzzerInitialize()
312 (int)getpid(), (hfnd_globals.sa_family == AF_INET ? "TCP4:127.0.0.1" : "TCP6:[::1]"), in LLVMFuzzerInitialize()
/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/syzkaller/prog/
Dparse_test.go16 const execLog = `getpid()
92 getpid()
95 getpid()
101 getpid()
105 getpid()
119 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/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/rename/
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()
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()
/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()

12345678910>>...55