/bionic/tests/ |
D | sys_ptrace_test.cpp | 65 static void check_hw_feature_supported(pid_t child, HwFeature feature) { in check_hw_feature_supported() argument 69 long result = ptrace(PTRACE_GETHBPREGS, child, 0, &capabilities); in check_hw_feature_supported() 93 long result = ptrace(PTRACE_GETREGSET, child, in check_hw_feature_supported() 107 UNUSED(child); in check_hw_feature_supported() 112 static void set_watchpoint(pid_t child, uintptr_t address, size_t size) { in set_watchpoint() argument 121 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -1, &address)) << strerror(errno); in set_watchpoint() 122 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -2, &control)) << strerror(errno); in set_watchpoint() 133 ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, child, NT_ARM_HW_WATCH, &iov)) << strerror(errno); in set_watchpoint() 136 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[0]), address)) << strerror(e… in set_watchpoint() 138 unsigned data = ptrace(PTRACE_PEEKUSER, child, offsetof(user, u_debugreg[7]), nullptr); in set_watchpoint() [all …]
|
D | pidfd_test.cpp | 41 pid_t child = fork(); in TEST() local 42 ASSERT_NE(-1, child); in TEST() 43 if (child == 0) { in TEST() 47 unique_fd pidfd(pidfd_open(child, 0)); in TEST() 58 ASSERT_EQ(child, siginfo.si_pid); in TEST() 94 unique_fd child(pidfd_open(getpid(), 0)); in TEST_F() 95 pidfd_send_signal(child.get(), SIGINT, nullptr, 0); in TEST_F()
|
D | dlext_test.cpp | 658 pid_t child = fork(); in SpawnChildrenAndMeasurePss() local 659 if (child == 0) { in SpawnChildrenAndMeasurePss() 684 ASSERT_NOERROR(child); in SpawnChildrenAndMeasurePss() 695 child_pids[i] = child; in SpawnChildrenAndMeasurePss()
|
/bionic/benchmarks/spawn/ |
D | spawn_benchmark.cpp | 43 pid_t child = 0; in BM_spawn_test() local 44 if (int spawn_err = posix_spawn(&child, argv[0], nullptr, nullptr, const_cast<char**>(argv), in BM_spawn_test() 52 const pid_t wait_result = TEMP_FAILURE_RETRY(waitpid(child, &wstatus, 0)); in BM_spawn_test() 53 if (wait_result != child) { in BM_spawn_test() 56 static_cast<int>(child), argv[0], strerror(errno)).c_str()); in BM_spawn_test()
|
/bionic/libc/arch-riscv64/bionic/ |
D | __bionic_clone.S | 34 # Push 'fn' and 'arg' onto the child stack. 43 # Are we the child? 44 beqz a0, L(child) 57 # We're in the child now. Set the end of the frame record chain. 61 # Call __start_thread with the 'fn' and 'arg' we stored on the child stack.
|
/bionic/libc/arch-arm64/bionic/ |
D | __bionic_clone.S | 34 # Push 'fn' and 'arg' onto the child stack. 41 # Are we the child? 42 cbz x0, L(child) 51 L(child):
|
/bionic/libc/bionic/ |
D | pthread_atfork.cpp | 40 void (*child)(void); member 137 if (it->child != nullptr) { in __bionic_atfork_run_child() 138 it->child(); in __bionic_atfork_run_child() 156 void(*child)(void), void* dso) { in __register_atfork() 164 entry->child = child; in __register_atfork()
|
D | system.cpp | 60 pid_t child; in system() local 61 if ((errno = posix_spawn(&child, __bionic_get_shell_path(), nullptr, &attributes, in system() 69 pid_t pid = TEMP_FAILURE_RETRY(waitpid(child, &status, 0)); in system()
|
/bionic/libc/arch-common/bionic/ |
D | pthread_atfork.h | 25 extern int __register_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void), void… 32 int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) { in pthread_atfork() 33 return __register_atfork(prepare, parent, child, &__dso_handle); in pthread_atfork()
|
/bionic/tests/libs/ |
D | pthread_atfork.cpp | 19 extern "C" int proxy_pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void… in proxy_pthread_atfork() 20 return pthread_atfork(prepare, parent, child); in proxy_pthread_atfork()
|
/bionic/libc/arch-arm/bionic/ |
D | __bionic_clone.S | 45 # Push 'fn' and 'arg' onto the child stack. 52 # Are we the child?
|
/bionic/tools/versioner/src/ |
D | DeclarationDatabase.cpp | 250 DeclaratorDecl* child = nullptr; in TraverseLinkageSpecDecl() local 252 if (child != nullptr) { in TraverseLinkageSpecDecl() 257 child = declarator_decl; in TraverseLinkageSpecDecl() 263 return VisitDeclaratorDecl(child, decl->getSourceRange()); in TraverseLinkageSpecDecl() 266 for (auto child : decl->decls()) { in TraverseLinkageSpecDecl() local 267 if (!TraverseDecl(child)) { in TraverseLinkageSpecDecl()
|
/bionic/linker/ |
D | linker_soinfo.cpp | 564 void soinfo::add_child(soinfo* child) { in add_child() argument 566 child->parents_.push_back(this); in add_child() 567 this->children_.push_back(child); in add_child() 577 children_.for_each([&] (soinfo* child) { in remove_all_links() argument 578 child->parents_.remove_if([&] (const soinfo* parent) { in remove_all_links() 584 parent->children_.remove_if([&] (const soinfo* child) { in remove_all_links() argument 585 return child == this; in remove_all_links()
|
D | linker.cpp | 724 si->get_children().for_each([&](soinfo* child) { in walk_dependencies_tree() argument 725 visit_list.push_back(child); in walk_dependencies_tree() 1907 soinfo* child = nullptr; in soinfo_unload_impl() local 1908 while ((child = si->get_children().pop_front()) != nullptr) { in soinfo_unload_impl() 1910 child->get_realpath(), child); in soinfo_unload_impl() 1912 child->get_parents().remove(si); in soinfo_unload_impl() 1914 if (local_unload_list.contains(child)) { in soinfo_unload_impl() 1916 } else if (child->is_linked() && child->get_local_group_root() != root) { in soinfo_unload_impl() 1917 external_unload_list.push_back(child); in soinfo_unload_impl() 1918 } else if (child->get_parents().empty()) { in soinfo_unload_impl() [all …]
|
D | linker_soinfo.h | 260 void add_child(soinfo* child);
|
/bionic/libc/arch-x86_64/bionic/ |
D | __bionic_clone.S | 33 # Copy 'fn' and 'arg' onto the child stack.
|
/bionic/libc/stdio/ |
D | stdio.cpp | 1196 int parent, child, desired_child_fd; in popen() local 1199 child = 1; in popen() 1203 child = 0; in popen() 1208 if (fds[child] == desired_child_fd) { in popen() 1209 int new_fd = fcntl(fds[child], F_DUPFD_CLOEXEC, 0); in popen() 1211 close(fds[child]); in popen() 1212 fds[child] = new_fd; in popen() 1221 if (dup2(fds[child], desired_child_fd) == -1) _exit(127); in popen() 1222 close(fds[child]); in popen() 1231 close(fds[child]); in popen()
|
/bionic/libc/arch-x86/bionic/ |
D | __bionic_clone.S | 22 # Copy 'fn' and 'arg' onto the child stack
|
/bionic/libc/kernel/uapi/linux/ |
D | fuse.h | 545 uint64_t child; member
|
/bionic/docs/ |
D | status.md | 104 * New helper to allow the zygote to give each zygote child its own stack
|