Home
last modified time | relevance | path

Searched refs:child (Results 1 – 17 of 17) sorted by relevance

/bionic/tests/
Dsys_ptrace_test.cpp65 static void check_hw_feature_supported(pid_t child, HwFeature feature) { in check_hw_feature_supported() argument
68 long result = ptrace(PTRACE_GETHBPREGS, child, 0, &capabilities); in check_hw_feature_supported()
91 long result = ptrace(PTRACE_GETREGSET, child, in check_hw_feature_supported()
105 UNUSED(child); in check_hw_feature_supported()
110 static void set_watchpoint(pid_t child, uintptr_t address, size_t size) { in set_watchpoint() argument
119 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -1, &address)) << strerror(errno); in set_watchpoint()
120 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -2, &control)) << strerror(errno); in set_watchpoint()
131 ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, child, NT_ARM_HW_WATCH, &iov)) << strerror(errno); in set_watchpoint()
134 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[0]), address)) << strerror(e… in set_watchpoint()
136 unsigned data = ptrace(PTRACE_PEEKUSER, child, offsetof(user, u_debugreg[7]), nullptr); in set_watchpoint()
[all …]
Ddlext_test.cpp657 pid_t child = fork(); in SpawnChildrenAndMeasurePss() local
658 if (child == 0) { in SpawnChildrenAndMeasurePss()
683 ASSERT_NOERROR(child); in SpawnChildrenAndMeasurePss()
694 child_pids[i] = child; in SpawnChildrenAndMeasurePss()
/bionic/benchmarks/spawn/
Dspawn_benchmark.cpp43 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/bionic/
Dpthread_atfork.cpp40 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()
Dsystem.cpp60 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/
Dpthread_atfork.h25 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/libc/arch-arm/bionic/
D__bionic_clone.S45 # Push 'fn' and 'arg' onto the child stack.
52 # Are we the child?
66 # Call __start_thread with the 'fn' and 'arg' we stored on the child stack.
/bionic/tests/libs/
Dpthread_atfork.cpp19 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-arm64/bionic/
D__bionic_clone.S34 # Push 'fn' and 'arg' onto the child stack.
41 # Are we the child?
/bionic/tools/versioner/src/
DDeclarationDatabase.cpp249 DeclaratorDecl* child = nullptr; in TraverseLinkageSpecDecl() local
251 if (child != nullptr) { in TraverseLinkageSpecDecl()
256 child = declarator_decl; in TraverseLinkageSpecDecl()
262 return VisitDeclaratorDecl(child, decl->getSourceRange()); in TraverseLinkageSpecDecl()
265 for (auto child : decl->decls()) { in TraverseLinkageSpecDecl() local
266 if (!TraverseDecl(child)) { in TraverseLinkageSpecDecl()
/bionic/linker/
Dlinker_soinfo.cpp572 void soinfo::add_child(soinfo* child) { in add_child() argument
574 child->parents_.push_back(this); in add_child()
575 this->children_.push_back(child); in add_child()
585 children_.for_each([&] (soinfo* child) { in remove_all_links() argument
586 child->parents_.remove_if([&] (const soinfo* parent) { in remove_all_links()
592 parent->children_.remove_if([&] (const soinfo* child) { in remove_all_links() argument
593 return child == this; in remove_all_links()
Dlinker.cpp689 si->get_children().for_each([&](soinfo* child) { in walk_dependencies_tree() argument
690 visit_list.push_back(child); in walk_dependencies_tree()
1860 soinfo* child = nullptr; in soinfo_unload_impl() local
1861 while ((child = si->get_children().pop_front()) != nullptr) { in soinfo_unload_impl()
1863 child->get_realpath(), child); in soinfo_unload_impl()
1865 child->get_parents().remove(si); in soinfo_unload_impl()
1867 if (local_unload_list.contains(child)) { in soinfo_unload_impl()
1869 } else if (child->is_linked() && child->get_local_group_root() != root) { in soinfo_unload_impl()
1870 external_unload_list.push_back(child); in soinfo_unload_impl()
1871 } else if (child->get_parents().empty()) { in soinfo_unload_impl()
[all …]
Dlinker_soinfo.h258 void add_child(soinfo* child);
/bionic/libc/stdio/
Dstdio.cpp1199 int parent, child, desired_child_fd; in popen() local
1202 child = 1; in popen()
1206 child = 0; in popen()
1211 if (fds[child] == desired_child_fd) { in popen()
1212 int new_fd = fcntl(fds[child], F_DUPFD_CLOEXEC, 0); in popen()
1214 close(fds[child]); in popen()
1215 fds[child] = new_fd; in popen()
1224 if (dup2(fds[child], desired_child_fd) == -1) _exit(127); in popen()
1225 close(fds[child]); in popen()
1234 close(fds[child]); in popen()
/bionic/libc/arch-x86_64/bionic/
D__bionic_clone.S33 # Copy 'fn' and 'arg' onto the child stack.
/bionic/libc/arch-x86/bionic/
D__bionic_clone.S22 # Copy 'fn' and 'arg' onto the child stack
/bionic/libc/kernel/uapi/linux/
Dfuse.h473 uint64_t child; member