/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_pid_container_027.cpp | 35 auto pid = getpid(); in ChildFunClone3() 45 auto pid = getpid(); in ChildFunClone2() 82 auto pid = getpid(); in ChildFunClone1() 88 auto pid1 = getpid(); in ChildFunClone1()
|
H A D | It_time_container_002.cpp | 47 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", getpid()); in childFunc() 119 ret = WriteProcTime(getpid()); in TimeContainerUnshare() 122 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in TimeContainerUnshare() 123 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType1); in TimeContainerUnshare()
|
H A D | It_time_container_003.cpp | 61 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc() 62 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType1); in childFunc() 86 auto linkBuffer = ReadlinkContainer(getpid(), containerType1); in TimeContainerUnshare()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
H A D | process_test_036.cpp | 41 ICUNIT_ASSERT_EQUAL(getpid(), getpgrp(), getpgrp()); in Child1() 45 ret = setpgid(getpid(), currGid); in Child1() 59 ret = setpgid(getpid(), gid); in Child2() 67 ICUNIT_ASSERT_EQUAL(getpgrp(), getpid(), getpgrp()); in Child2()
|
H A D | process_test_037.cpp | 41 ICUNIT_ASSERT_EQUAL(getpid(), getpgrp(), getpgrp()); in Child1() 54 ret = setpgid(getpid(), getpid()); in Child2() 56 ICUNIT_ASSERT_EQUAL(getpgrp(), getpid(), getpgrp()); in Child2()
|
/third_party/ltp/testcases/kernel/syscalls/mknodat/ |
H A D | mknodat01.c | 129 sprintf(testfilepath, PATHNAME"/mknodattestfile%d", getpid()); in setup() 130 sprintf(testfile, "mknodattestfile%d", getpid()); in setup() 131 sprintf(testfile2, "mknodattestfile2%d", getpid()); in setup() 132 sprintf(testfile3, "%s/mknodattestfile3%d", tmpdir, getpid()); in setup()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | task_local_storage.c | 88 task_fd = sys_pidfd_open(getpid(), 0); in test_recursion() 101 skel->bss->test_pid = getpid(); in test_recursion() 184 err = sched_getaffinity(getpid(), sizeof(old), &old); in test_nodeadlock() 187 err = sched_setaffinity(getpid(), sizeof(new), &new); in test_nodeadlock() 233 sched_setaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_006.cpp | 35 return getpid(); in ChildFun1() 43 pid_t pid = getpid(); in ChildFun() 87 pid_t parentPid = getpid(); in ItPidContainer006()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
H A D | common_sparse.h | 97 getpid(), filename); in read_sparse() 103 getpid(), filename); in read_sparse() 110 fprintf(stderr, "Child %i loop %i\n", getpid(), i); in read_sparse()
|
/third_party/ltp/testcases/kernel/syscalls/mkdirat/ |
H A D | mkdirat01.c | 93 sprintf(testdir, "mkdirattestdir%d_%d", getpid(), i); in setup_iteration() 94 sprintf(relpath, "mkdiratrelpath%d_%d", getpid(), i); in setup_iteration() 95 sprintf(abspath, "%s/mkdiratrelpath%d_%d_2", tmpdir, getpid(), i); in setup_iteration()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 18-1.c | 59 notified = (int)getpid(); in notification() 114 if (notified == (int)getpid()) { in main() 138 if (notified != (int)getpid()) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/getpid/ |
H A D | 1-1.c | 19 * getpid() always returns the process ID of the calling thread/process. 23 * -> create two threads and check they get the same getpid() return value. 24 * -> create two processes and check they get different getpid() return value. 25 * -> check that the child process getpid() return value matchs the fork() return 57 *sharedpid = getpid(); in child() 64 *(pid_t *) arg = getpid(); in threaded() 77 mypid = getpid(); in main() 97 ("Child thread got a different return value from getpid()\n"); in main() 114 char filename[] = "/tmp/getpid-1-XXXXXX"; in main() 181 ("getpid() i in main() [all...] |
/third_party/ltp/testcases/kernel/controllers/memcg/ |
H A D | memcontrol03.c | 105 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_anon_in_child() 108 getpid(), tst_cg_group_name(cg), size); in alloc_anon_in_child() 142 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_pagecache_in_child() 145 getpid(), tst_cg_group_name(cg), size); in alloc_pagecache_in_child()
|
H A D | memcontrol04.c | 97 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_anon_in_child() 100 getpid(), tst_cg_group_name(cg), size); in alloc_anon_in_child() 116 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_pagecache_in_child() 119 getpid(), tst_cg_group_name(cg), size); in alloc_pagecache_in_child()
|
/third_party/ltp/testcases/kernel/mem/mtest01/ |
H A D | mtest01.c | 140 tst_res(TINFO, "... child %d starting", getpid()); in child_loop_alloc() 150 getpid(), bytecount, chunksize); in child_loop_alloc() 160 runtime_rem, bytecount, getpid()); in child_loop_alloc() 163 runtime_rem, bytecount, getpid()); in child_loop_alloc()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | resourcendk1.cpp | 52 id_t pid = getpid();
in GetPriority1() 77 id_t pid = getpid();
in Setpriority1() 183 id_t pid = getpid();
in PrLimit1() 195 id_t pid = getpid();
in PrLimit2() 207 id_t pid = getpid();
in PrLimit641() 219 id_t pid = getpid();
in PrLimit642()
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest06.c | 130 parent_pid = getpid(); in main() 141 "%s/ftest06.%d", cwd, getpid()); in main() 143 "%s/ftest06h.%d", cwd, getpid()); in main() 414 //tst_resm(TINFO,"Test %d pid %d starting.", me, getpid()); in dotest() 416 srand(getpid()); in dotest() 424 //tst_resm(TINFO,"Test %d pid %d exiting.", me, getpid()); in dotest() 439 tst_resm(TINFO, "\tterm -[%d]- got sig term.", getpid()); in term() 441 if (parent_pid == getpid()) { in term()
|
/third_party/python/Lib/multiprocessing/ |
H A D | process.py | 86 self._parent_pid = os.getpid() 116 assert self._parent_pid == os.getpid(), \ 147 assert self._parent_pid == os.getpid(), 'can only join a child process' 160 assert self._parent_pid == os.getpid(), 'can only test a child process' 241 return os.getpid() 265 elif self._parent_pid != os.getpid():
|
H A D | heap.py | 41 name = 'pym-%d-%s' % (os.getpid(), next(self._rand)) 84 prefix='pym-%d-'%os.getpid(), 124 self._lastpid = os.getpid() 278 if os.getpid() != self._lastpid: 281 os.getpid(),self._lastpid)) 302 if os.getpid() != self._lastpid:
|
/third_party/python/Lib/unittest/test/ |
H A D | test_break.py | 58 pid = os.getpid() 77 pid = os.getpid() 106 pid = os.getpid() 139 os.kill(os.getpid(), signal.SIGINT) 167 os.kill(os.getpid(), signal.SIGINT) 206 pid = os.getpid()
|
/third_party/musl/src/malloc/liteos_a/user_debug/ |
H A D | memory_check.c | 181 pid_t pid = getpid(); in create_node() 238 snprintf(mem_stat.f_path_buf + len, PATH_MAX - len, "pid(%d)_%s", getpid(), pos + 1); in file_path_init() 240 snprintf(mem_stat.f_path_buf, PATH_MAX, "pid(%d)_%s", getpid(), mem_stat.f_path); in file_path_init() 333 printf("\n==PID:%d== Memory integrity information:\n", getpid()); in print_integrity_info() 337 snprintf(buffer, ITEM_BUFFER_SIZE, "\n==PID:%d== Memory integrity information:\n", getpid()); in print_integrity_info() 516 printf("\n==PID:%d== double free\n", getpid()); in get_free_trace() 519 snprintf(buffer, ITEM_BUFFER_SIZE, "\n==PID:%d== double free\n", getpid()); in get_free_trace() 549 pid_t pid = getpid(); in watch_mem() 620 printf("\n==PID:%d== Detected memory leak(s):\n", getpid()); in get_node_info() 622 snprintf(buffer, ITEM_BUFFER_SIZE, "\n==PID:%d== Detected memory leak(s):\n", getpid()); in get_node_info() [all...] |
/third_party/musl/porting/liteos_a/user_debug/src/malloc/ |
H A D | memory_check.c | 166 pid_t pid = getpid(); in create_node() 223 snprintf(mem_stat.f_path_buf + len, PATH_MAX - len, "pid(%d)_%s", getpid(), pos + 1); in file_path_init() 225 snprintf(mem_stat.f_path_buf, PATH_MAX, "pid(%d)_%s", getpid(), mem_stat.f_path); in file_path_init() 318 printf("\n==PID:%d== Memory integrity information:\n", getpid()); in print_integrity_info() 322 snprintf(buffer, ITEM_BUFFER_SIZE, "\n==PID:%d== Memory integrity information:\n", getpid()); in print_integrity_info() 501 printf("\n==PID:%d== double free\n", getpid()); in get_free_trace() 504 snprintf(buffer, ITEM_BUFFER_SIZE, "\n==PID:%d== double free\n", getpid()); in get_free_trace() 534 pid_t pid = getpid(); in watch_mem() 605 printf("\n==PID:%d== Detected memory leak(s):\n", getpid()); in get_node_info() 607 snprintf(buffer, ITEM_BUFFER_SIZE, "\n==PID:%d== Detected memory leak(s):\n", getpid()); in get_node_info() [all...] |
/test/xts/hats/kernel/rtginterface/ |
H A D | rtg_interface_test.cpp | 137 int pid = getpid(); in HWTEST_F() 172 int pid = getpid(); in HWTEST_F() 192 int pid = getpid(); in HWTEST_F() 213 int pid = getpid(); in HWTEST_F() 266 int pid = getpid(); in HWTEST_F() 316 int pid = getpid(); in HWTEST_F() 350 int pid = getpid(); in HWTEST_F() 400 int pid = getpid(); in HWTEST_F()
|
/third_party/ltp/lib/newlib_tests/ |
H A D | test04.c | 26 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup() 31 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup()
|
/third_party/pulseaudio/src/pulse/ |
H A D | fork-detect.c | 46 if (stored_pid == getpid()) in pa_detect_fork() 54 if (pa_atomic_cmpxchg(&pid, (int) -1, (int) getpid())) in pa_detect_fork()
|