Home
last modified time | relevance | path

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

123

/bionic/tests/
Dsys_uio_test.cpp79 ASSERT_EQ(ssize_t(sizeof src), process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST()
86 ASSERT_EQ(-1, process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST()
98 ASSERT_EQ(ssize_t(sizeof src), process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()
105 ASSERT_EQ(-1, process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()
Dsched_test.cpp285 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()
Dsystem_properties_test2.cpp50 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()
Dsignal_test.cpp587 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
637 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
656 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST()
675 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
697 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST()
719 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
740 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST()
790 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST()
797 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST()
Dsys_syscall_test.cpp22 ASSERT_EQ(getpid(), syscall(SYS_getpid)); in TEST()
Dstack_protector_test.cpp71 ASSERT_EQ(getpid(), gettid()); // We are the main thread, right? in TEST()
Dunistd_test.cpp481 ASSERT_EQ(getpid_syscall_result, getpid()); in AssertGetPidCorrect()
486 pid_t parent_pid = getpid(); in TestGetPidCachingWithFork()
498 ASSERT_EQ(parent_pid, getpid()); in TestGetPidCachingWithFork()
528 EXPECT_EQ(getpid(), GetTidForTest()) << "real tid is " << syscall(__NR_gettid) in TestGetTidCachingWithFork()
598 pid_t parent_pid = getpid(); in TEST()
604 ASSERT_EQ(parent_pid, getpid()); in TEST()
648 pid_t parent_pid = getpid(); in TEST()
653 ASSERT_EQ(parent_pid, getpid()); in TEST()
Dstack_unwinding_test.cpp108 ASSERT_EQ(0, kill(getpid(), SIGUSR1)); in UnwindTest()
Dmalloc_stress_test.cpp72 android::meminfo::ProcMemInfo proc_mem(getpid()); in TEST()
Dleak_test.cpp47 if (tgkill(getpid(), tids[i], 0) == 0) { in WaitUntilAllThreadsExited()
Dbug_26110743_test.cpp79 pid_t mypid = getpid(); in ProcTaskFdReadlinkBody()
Dspawn_test.cpp304 ASSERT_EQ(getpid(), ps->ppid); in GetChildStat()
459 static pid_t parent = getpid(); in TEST()
490 ScopedSignalHandler ssh(SIGRTMIN, [](int) { ASSERT_EQ(getpid(), parent); }); in TEST()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp220 SIGRTMAX - 19, getpid()); in VerifyAllocCalls()
223 SIGRTMAX - 17, getpid()); in VerifyAllocCalls()
226 SIGRTMAX - 18, getpid()); in VerifyAllocCalls()
268 SIGRTMAX - 19, getpid()); in TEST_F()
271 SIGRTMAX - 17, getpid()); in TEST_F()
281 SIGRTMAX - 17, getpid()); in TEST_F()
291 SIGRTMAX - 18, getpid()); in TEST_F()
1373 ASSERT_TRUE(kill(getpid(), SIGRTMAX - 17) == 0); in BacktraceDumpOnSignal()
1391 std::string name = android::base::StringPrintf("%s.%d.txt", BACKTRACE_DUMP_PREFIX, getpid()); in BacktraceDumpOnSignal()
1419 "6 malloc_debug Dumping to file: /data/local/tmp/backtrace_heap.%d.txt\n\n", getpid()); in BacktraceDumpOnSignal()
[all …]
/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
Dnetinet_in.cpp58 port = START_PORT + (getpid() % NUM_PORTS); in bindresvport()
Dlockf.cpp62 if (fl.l_type == F_UNLCK || fl.l_pid == getpid()) return 0; in lockf64()
Dbionic_systrace.cpp72 size_t len = async_safe_format_buffer(buf, length + WRITE_OFFSET, "B|%d|%s", getpid(), message); in bionic_trace_begin()
Dpthread_create.cpp125 (getpid() == 1) ? 0 : (arc4random_uniform(SCS_GUARD_REGION_SIZE / SCS_SIZE - 1) * SCS_SIZE); in __init_shadow_call_stack()
396 thread->set_cached_pid(getpid()); in pthread_create()
Dlibc_init_common.cpp336 if ((getpid() != 1) || is_AT_SECURE) { in __libc_init_AT_SECURE()
/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/libc/upstream-openbsd/lib/libc/net/
Dres_random.c236 pid = getpid(); in __res_randomid()

123