/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 | 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 | system_property_api.cpp | 136 CHECK(getpid() == gettid()); in __system_properties_zygote_reload()
|
/bionic/tests/ |
D | pidfd_test.cpp | 66 unique_fd self(pidfd_open(getpid(), 0)); in TEST() 84 unique_fd self(pidfd_open(getpid(), 0)); in TEST_F() 94 unique_fd child(pidfd_open(getpid(), 0)); in TEST_F()
|
D | sys_uio_test.cpp | 121 ASSERT_EQ(ssize_t(sizeof src), process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST() 129 ASSERT_EQ(-1, process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST() 141 ASSERT_EQ(ssize_t(sizeof src), process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST() 149 ASSERT_EQ(-1, process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()
|
D | sched_test.cpp | 287 ASSERT_EQ(sched_getscheduler(getpid()), sched_getscheduler(0)); in TEST() 289 const int original_policy = sched_getscheduler(getpid()); in TEST() 293 ASSERT_EQ(-1, sched_setscheduler(getpid(), INT_MAX, &p)); in TEST() 296 ASSERT_EQ(0, sched_getparam(getpid(), &p)); in TEST() 297 ASSERT_EQ(original_policy, sched_setscheduler(getpid(), SCHED_BATCH, &p)); in TEST() 304 ASSERT_EQ(0, sched_setscheduler(getpid(), original_policy, &p)); in TEST() 310 ASSERT_EQ(-1, sched_getaffinity(getpid(), 0, nullptr)); in TEST()
|
D | system_properties_test2.cpp | 46 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST() 133 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST() 157 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 | 600 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 658 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 677 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 696 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 718 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 740 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 761 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 811 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST() 818 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST()
|
D | stack_protector_test.cpp | 73 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()
|
/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 - 15, getpid()); in VerifyAllocCalls() 274 SIGRTMAX - 16, getpid()); in VerifyAllocCalls() 316 SIGRTMAX - 19, getpid()); in TEST_F() 319 SIGRTMAX - 17, getpid()); in TEST_F() 329 SIGRTMAX - 17, getpid()); in TEST_F() 339 SIGRTMAX - 18, getpid()); in TEST_F() [all …]
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 95 ssize_t rc = process_vm_readv(getpid(), &dst_io, 1, &src_io, 1, 0); in Init() 113 ssize_t rc = process_vm_readv(getpid(), &dst_io, 1, &src_io, 1, 0); in GetLoadBias() 126 rc = process_vm_readv(getpid(), &dst_io, 1, &src_io, 1, 0); in GetLoadBias()
|
D | LogAllocatorStats.cpp | 67 config.log_allocator_stats_signal(), getpid()); in Initialize()
|
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());
|
/bionic/tests/libs/ |
D | heap_tagging_helper.cpp | 96 auto cmd = android::base::StringPrintf("cat /proc/%d/smaps | grep -E 'VmFlags:.* mt'", getpid()); in main()
|