Home
last modified time | relevance | path

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

1234

/bionic/libc/bionic/
Dpthread_sigqueue.cpp48 siginfo.si_pid = getpid(); in pthread_sigqueue()
52 return syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, sig, &siginfo) ? errno : 0; in pthread_sigqueue()
Dpthread_kill.cpp45 return (tgkill(getpid(), tid, sig) == -1) ? errno : 0; in pthread_kill()
Dgetpid.cpp46 pid_t getpid() { in getpid() function
Dlockf.cpp62 if (fl.l_type == F_UNLCK || fl.l_pid == getpid()) return 0; in lockf64()
Dbionic_systrace.cpp74 size_t len = async_safe_format_buffer(buf, length + WRITE_OFFSET, "B|%d|%s", getpid(), message); in trace_begin_internal()
Dsystem_property_api.cpp136 CHECK(getpid() == gettid()); in __system_properties_zygote_reload()
/bionic/tests/
Dpidfd_test.cpp66 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()
Dsys_uio_test.cpp121 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()
Dsched_test.cpp287 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()
Dsystem_properties_test2.cpp46 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()
Dsys_syscall_test.cpp22 ASSERT_EQ(getpid(), syscall(SYS_getpid)); in TEST()
Dsignal_test.cpp600 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()
Dstack_protector_test.cpp73 ASSERT_EQ(getpid(), gettid()); // We are the main thread, right? in TEST()
Dstack_unwinding_test.cpp123 ASSERT_EQ(0, kill(getpid(), SIGUSR1)); in SignalUnwindTest()
Dbug_26110743_test.cpp79 pid_t mypid = getpid(); in ProcTaskFdReadlinkBody()
Dmalloc_stress_test.cpp72 android::meminfo::ProcMemInfo proc_mem(getpid()); in TEST()
Dleak_test.cpp48 if (syscall(__NR_tgkill, getpid(), tids[i], 0) == 0) { in WaitUntilAllThreadsExited()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp133 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/
DMapData.cpp95 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()
DLogAllocatorStats.cpp67 config.log_allocator_stats_signal(), getpid()); in Initialize()
DUnreachable.cpp76 config.check_unreachable_signal(), getpid()); in Initialize()
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h49 pid_t pid = getpid(); in _rs_forkdetect()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_106.S22 CALL(getpid)
/bionic/benchmarks/
Dunistd_benchmark.cpp30 BIONIC_TRIVIAL_BENCHMARK(BM_unistd_getpid, getpid());
/bionic/tests/libs/
Dheap_tagging_helper.cpp96 auto cmd = android::base::StringPrintf("cat /proc/%d/smaps | grep -E 'VmFlags:.* mt'", getpid()); in main()

1234