Home
last modified time | relevance | path

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

1234

/bionic/tests/
Dpidfd_test.cpp66 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()
Dsys_uio_test.cpp119 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()
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()
308 ASSERT_EQ(-1, sched_getaffinity(getpid(), 0, nullptr)); 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()
Dsys_syscall_test.cpp22 ASSERT_EQ(getpid(), syscall(SYS_getpid)); in TEST()
Dsignal_test.cpp599 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()
Dstack_protector_test.cpp72 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()
Dfdtrack_test.cpp235 int rc = pidfd_open(getpid(), 0);
245 int pidfd_self = pidfd_open(getpid(), 0);
Dunistd_test.cpp486 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/
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.cpp74 size_t len = async_safe_format_buffer(buf, length + WRITE_OFFSET, "B|%d|%s", getpid(), message); in trace_begin_internal()
Dpthread_internal.cpp164 pid_t my_pid = getpid(); in android_run_on_all_threads()
/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 - 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/
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());

1234