/bionic/tests/ |
D | pidfd_test.cpp | 66 unique_fd self(pidfd_open(getpid(), 0)); in TEST() 88 unique_fd self(pidfd_open(getpid(), 0)); in TEST_F() 101 unique_fd child(pidfd_open(getpid(), 0)); in TEST_F()
|
D | sys_uio_test.cpp | 119 ASSERT_EQ(ssize_t(sizeof src), process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST() 126 ASSERT_EQ(-1, process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST() 138 ASSERT_EQ(ssize_t(sizeof src), process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST() 145 ASSERT_EQ(-1, process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()
|
D | sched_test.cpp | 285 ASSERT_EQ(sched_getscheduler(getpid()), sched_getscheduler(0)); in TEST() 287 const int original_policy = sched_getscheduler(getpid()); in TEST() 291 ASSERT_EQ(-1, sched_setscheduler(getpid(), INT_MAX, &p)); in TEST() 294 ASSERT_EQ(0, sched_getparam(getpid(), &p)); in TEST() 295 ASSERT_EQ(original_policy, sched_setscheduler(getpid(), SCHED_BATCH, &p)); in TEST() 302 ASSERT_EQ(0, sched_setscheduler(getpid(), original_policy, &p)); in TEST() 308 ASSERT_EQ(-1, sched_getaffinity(getpid(), 0, nullptr)); in TEST()
|
D | system_properties_test2.cpp | 50 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST() 137 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST() 161 ss << "debug.test." << getpid() << "." << NanoTime() << "." << "property_empty"; in TEST()
|
D | sys_syscall_test.cpp | 22 ASSERT_EQ(getpid(), syscall(SYS_getpid)); in TEST()
|
D | signal_test.cpp | 599 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 657 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 676 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 695 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 717 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 739 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 760 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 810 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST() 817 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST()
|
D | stack_protector_test.cpp | 72 ASSERT_EQ(getpid(), gettid()); // We are the main thread, right? in TEST()
|
D | stack_unwinding_test.cpp | 123 ASSERT_EQ(0, kill(getpid(), SIGUSR1)); in SignalUnwindTest()
|
D | bug_26110743_test.cpp | 79 pid_t mypid = getpid(); in ProcTaskFdReadlinkBody()
|
D | malloc_stress_test.cpp | 72 android::meminfo::ProcMemInfo proc_mem(getpid()); in TEST()
|
D | leak_test.cpp | 48 if (syscall(__NR_tgkill, getpid(), tids[i], 0) == 0) { in WaitUntilAllThreadsExited()
|
D | fdtrack_test.cpp | 235 int rc = pidfd_open(getpid(), 0); 245 int pidfd_self = pidfd_open(getpid(), 0);
|
D | unistd_test.cpp | 486 ASSERT_EQ(getpid_syscall_result, getpid()); in AssertGetPidCorrect() 491 pid_t parent_pid = getpid(); in TestGetPidCachingWithFork() 503 ASSERT_EQ(parent_pid, getpid()); in TestGetPidCachingWithFork() 533 EXPECT_EQ(getpid(), GetTidForTest()) << "real tid is " << syscall(__NR_gettid) in TestGetTidCachingWithFork() 604 pid_t parent_pid = getpid(); in TEST() 610 ASSERT_EQ(parent_pid, getpid()); in TEST() 654 pid_t parent_pid = getpid(); in TEST() 659 ASSERT_EQ(parent_pid, getpid()); in TEST()
|
/bionic/libc/bionic/ |
D | pthread_sigqueue.cpp | 48 siginfo.si_pid = getpid(); in pthread_sigqueue() 52 return syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, sig, &siginfo) ? errno : 0; in pthread_sigqueue()
|
D | pthread_kill.cpp | 45 return (tgkill(getpid(), tid, sig) == -1) ? errno : 0; in pthread_kill()
|
D | getpid.cpp | 46 pid_t getpid() { in getpid() function
|
D | netinet_in.cpp | 58 port = START_PORT + (getpid() % NUM_PORTS); in bindresvport()
|
D | lockf.cpp | 62 if (fl.l_type == F_UNLCK || fl.l_pid == getpid()) return 0; in lockf64()
|
D | bionic_systrace.cpp | 74 size_t len = async_safe_format_buffer(buf, length + WRITE_OFFSET, "B|%d|%s", getpid(), message); in trace_begin_internal()
|
D | pthread_internal.cpp | 164 pid_t my_pid = getpid(); in android_run_on_all_threads()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 133 record_filename = android::base::StringPrintf("%s.%d.txt", RECORD_ALLOCS_FILE, getpid()); in InitRecordAllocs() 262 SIGRTMAX - 19, getpid()); in VerifyAllocCalls() 265 SIGRTMAX - 17, getpid()); in VerifyAllocCalls() 268 SIGRTMAX - 18, getpid()); in VerifyAllocCalls() 271 SIGRTMAX - 16, getpid()); in VerifyAllocCalls() 313 SIGRTMAX - 19, getpid()); in TEST_F() 316 SIGRTMAX - 17, getpid()); in TEST_F() 326 SIGRTMAX - 17, getpid()); in TEST_F() 336 SIGRTMAX - 18, getpid()); in TEST_F() 346 SIGRTMAX - 16, getpid()); in TEST_F() [all …]
|
/bionic/libc/malloc_debug/ |
D | Unreachable.cpp | 76 config.check_unreachable_signal(), getpid()); in Initialize()
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 49 pid_t pid = getpid(); in _rs_forkdetect()
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_106.S | 22 CALL(getpid)
|
/bionic/benchmarks/ |
D | unistd_benchmark.cpp | 30 BIONIC_TRIVIAL_BENCHMARK(BM_unistd_getpid, getpid());
|