/bionic/libc/dns/net/ |
D | sethostent.c | 107 struct getnamaddr *info = rv; in _hf_gethtbyname() local 121 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname() 125 hp = _hf_gethtbyname2(name, AF_INET, info); in _hf_gethtbyname() 129 hp = _hf_gethtbyname2(name, af, info); in _hf_gethtbyname() 132 if (*info->he == NETDB_INTERNAL && errno == ENOSPC) { in _hf_gethtbyname() 135 *info->he = HOST_NOT_FOUND; in _hf_gethtbyname() 142 _hf_gethtbyname2(const char *name, int af, struct getnamaddr *info) in _hf_gethtbyname2() argument 157 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2() 161 if ((ptr = buf = malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2() 162 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2() [all …]
|
D | gethnamaddr.c | 679 struct getnamaddr info; in gethostbyname_internal_real() local 755 info.hp = hp; in gethostbyname_internal_real() 756 info.buf = buf; in gethostbyname_internal_real() 757 info.buflen = buflen; in gethostbyname_internal_real() 758 info.he = he; in gethostbyname_internal_real() 759 if (nsdispatch(&info, dtab, NSDB_HOSTS, "gethostbyname", in gethostbyname_internal_real() 839 struct getnamaddr info; in android_gethostbyaddrfornetcontext_real() local 881 info.hp = hp; in android_gethostbyaddrfornetcontext_real() 882 info.buf = buf; in android_gethostbyaddrfornetcontext_real() 883 info.buflen = buflen; in android_gethostbyaddrfornetcontext_real() [all …]
|
/bionic/tests/ |
D | elf_test.cpp | 23 uint8_t info; in TEST() local 26 info = ELF32_ST_INFO(STB_LOCAL, STT_HIPROC); in TEST() 27 ASSERT_EQ(STB_LOCAL, ELF32_ST_BIND(info)); in TEST() 28 ASSERT_EQ(STT_HIPROC, ELF32_ST_TYPE(info)); in TEST() 31 info = ELF64_ST_INFO(STB_LOCAL, STT_HIPROC); in TEST() 32 ASSERT_EQ(STB_LOCAL, ELF64_ST_BIND(info)); in TEST() 33 ASSERT_EQ(STT_HIPROC, ELF64_ST_TYPE(info)); in TEST() 36 info = ELF32_ST_INFO(STB_LOCAL, STT_HIPROC); in TEST() 37 ASSERT_EQ(STB_LOCAL, ELF32_ST_BIND(info)); in TEST() 38 ASSERT_EQ(STT_HIPROC, ELF32_ST_TYPE(info)); in TEST() [all …]
|
D | link_test.cpp | 53 void DoChecks(dl_phdr_info* info, size_t s) { in TEST() 56 ASSERT_TRUE(info->dlpi_name != nullptr); in TEST() 59 ASSERT_NE(nullptr, info->dlpi_phdr); in TEST() 60 ASSERT_NE(0, info->dlpi_phnum); in TEST() 64 for (ElfW(Half) i = 0; i < info->dlpi_phnum; ++i) { in TEST() 65 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST() 67 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(info->dlpi_addr + in TEST() 72 ASSERT_EQ(info->dlpi_phnum, ehdr->e_phnum); in TEST() 93 auto callback = [](dl_phdr_info* info, size_t size, void* data) { in TEST() argument 98 counters.adds = info->dlpi_adds; in TEST() [all …]
|
D | stack_unwinding_test.cpp | 46 Dl_info info; in FrameCounter() local 47 memset(&info, 0, sizeof(info)); in FrameCounter() 48 if (dladdr(ip, &info) != 0) { in FrameCounter() 49 symbol = info.dli_sname; in FrameCounter() 50 if (info.dli_saddr != nullptr) { in FrameCounter() 51 … offset = static_cast<int>(reinterpret_cast<char*>(ip) - reinterpret_cast<char*>(info.dli_saddr)); in FrameCounter() 55 …fprintf(stderr, " #%02d %p %s%+d (%s)\n", *count_ptr, ip, symbol, offset, info.dli_fname ? info.dl… in FrameCounter()
|
D | elftls_dl_test.cpp | 308 Dl_info info; in TEST() local 311 ASSERT_EQ(0, dladdr(&elftls_shared_var, &info)); in TEST() 317 ASSERT_EQ(0, dladdr(var_addr, &info)); in TEST() 329 Dl_info info; in TEST() local 330 ASSERT_NE(0, dladdr(local_addr, &info)); in TEST() 334 ASSERT_TRUE(realpath(info.dli_fname, dli_realpath)); in TEST() 336 ASSERT_STREQ(nullptr, info.dli_sname); in TEST() 337 ASSERT_EQ(nullptr, info.dli_saddr); in TEST() 354 auto callback = [](dl_phdr_info* info, size_t, void* data) { in TEST() argument 359 if (strcmp(basename(info->dlpi_name), "libtest_elftls_dynamic.so") != 0) return 0; in TEST() [all …]
|
D | dlfcn_symlink_support.cpp | 35 static int dl_callback(struct dl_phdr_info *info, size_t /* size */, void *data) { in dl_callback() argument 42 if (info->dlpi_name == nullptr) { in dl_callback() 47 if (android::base::EndsWith(info->dlpi_name, suffix)) { in dl_callback() 49 *path = info->dlpi_name; in dl_callback()
|
D | signal_test.cpp | 575 static void SigqueueSignalHandler(int signum, siginfo_t* info, void*) { in SigqueueSignalHandler() argument 577 ASSERT_EQ(SIGALRM, info->si_signo); in SigqueueSignalHandler() 578 ASSERT_EQ(SI_QUEUE, info->si_code); in SigqueueSignalHandler() 579 ASSERT_EQ(1, info->si_value.sival_int); in SigqueueSignalHandler() 678 siginfo_t info; in TEST() local 680 ASSERT_EQ(SIGALRM, sigwaitinfo(&just_SIGALRM, &info)); in TEST() 682 ASSERT_EQ(SIGALRM, info.si_signo); in TEST() 683 ASSERT_EQ(1, info.si_value.sival_int); in TEST() 700 siginfo_t info; in TEST() local 702 ASSERT_EQ(SIGRTMIN, sigwaitinfo64(&just_SIGRTMIN, &info)); in TEST() [all …]
|
/bionic/libc/bionic/ |
D | bionic_allocator.cpp | 206 memcpy(page->info.signature, kSignature, sizeof(kSignature)); in alloc_page() 207 page->info.type = type_; in alloc_page() 208 page->info.allocator_addr = this; in alloc_page() 286 page_info* info = get_page_info_unchecked(result); in alloc_mmap() local 287 memcpy(info->signature, kSignature, sizeof(kSignature)); in alloc_mmap() 288 info->type = kLargeObject; in alloc_mmap() 289 info->allocated_size = allocated_size; in alloc_mmap() 335 page_info* info = get_page_info_unchecked(ptr); in get_page_info() local 336 if (memcmp(info->signature, kSignature, sizeof(kSignature)) != 0) { in get_page_info() 340 return info; in get_page_info() [all …]
|
D | signal.cpp | 213 siginfo_t info; in sigqueue() local 214 memset(&info, 0, sizeof(siginfo_t)); in sigqueue() 215 info.si_signo = sig; in sigqueue() 216 info.si_code = SI_QUEUE; in sigqueue() 217 info.si_pid = getpid(); in sigqueue() 218 info.si_uid = getuid(); in sigqueue() 219 info.si_value = value; in sigqueue() 220 return __rt_sigqueueinfo(pid, sig, &info); in sigqueue() 273 int sigtimedwait(const sigset_t* bionic_set, siginfo_t* info, const timespec* timeout) { in sigtimedwait() argument 276 return sigtimedwait64(&set.sigset64, info, timeout); in sigtimedwait() [all …]
|
D | android_profiling_dynamic.cpp | 79 static void HandleProfilingSignal(int /*signal_number*/, siginfo_t* info, void* /*ucontext*/) { in HandleProfilingSignal() argument 82 if (info->si_code != SI_QUEUE) { in HandleProfilingSignal() 86 int signal_value = info->si_value.sival_int; in HandleProfilingSignal() 179 static void HandleSigsysSeccompOverride(int /*signal_number*/, siginfo_t* info, in HandleSigsysSeccompOverride() argument 182 if (info->si_code != SYS_SECCOMP) { in HandleSigsysSeccompOverride() 189 info->si_syscall); in HandleSigsysSeccompOverride()
|
D | wait.cpp | 32 extern "C" int __waitid(idtype_t which, id_t id, siginfo_t* info, int options, struct rusage* ru); 42 int waitid(idtype_t which, id_t id, siginfo_t* info, int options) { in waitid() argument 44 return __waitid(which, id, info, options, nullptr); in waitid()
|
/bionic/libc/private/ |
D | bionic_inline_raise.h | 43 siginfo_t info = {}; variable 44 info.si_code = SI_QUEUE; 45 info.si_pid = pid; 46 info.si_uid = getuid(); 47 info.si_value.sival_ptr = value; 53 register long r3 __asm__("r3") = reinterpret_cast<long>(&info); 60 register long x3 __asm__("x3") = reinterpret_cast<long>(&info); 64 syscall(__NR_rt_tgsigqueueinfo, pid, tid, sig, &info);
|
/bionic/libc/malloc_debug/ |
D | PointerData.cpp | 274 void PointerData::LogFreeError(const FreePointerInfoType& info, size_t max_cmp_bytes) { in LogFreeError() argument 276 uint8_t* memory = reinterpret_cast<uint8_t*>(info.pointer); in LogFreeError() 285 if (info.hash_index > kBacktraceEmptyIndex) { in LogFreeError() 287 LogBacktrace(info.hash_index); in LogFreeError() 296 void PointerData::VerifyFreedPointer(const FreePointerInfoType& info) { in VerifyFreedPointer() argument 300 Header* header = g_debug->GetHeader(reinterpret_cast<const void*>(info.pointer)); in VerifyFreedPointer() 304 info.pointer, header->tag); in VerifyFreedPointer() 316 usable_size = g_dispatch->malloc_usable_size(reinterpret_cast<const void*>(info.pointer)); in VerifyFreedPointer() 323 const uint8_t* memory = reinterpret_cast<const uint8_t*>(info.pointer); in VerifyFreedPointer() 327 LogFreeError(info, max_cmp_bytes); in VerifyFreedPointer() [all …]
|
D | UnwindBacktrace.cpp | 89 const unwindstack::LocalFrameData* info = &frame_info[i]; in UnwindLog() local 90 unwindstack::MapInfo* map_info = info->map_info; in UnwindLog() 92 …std::string line = android::base::StringPrintf(" #%0zd pc %" PAD_PTR " ", i, info->rel_… in UnwindLog() 103 if (!info->function_name.empty()) { in UnwindLog() 105 char* demangled_name = __cxa_demangle(info->function_name.c_str(), nullptr, nullptr, nullptr); in UnwindLog() 110 line += info->function_name; in UnwindLog() 112 if (info->function_offset != 0) { in UnwindLog() 113 line += "+" + std::to_string(info->function_offset); in UnwindLog()
|
D | backtrace.cpp | 140 Dl_info info; in backtrace_string() local 141 if (dladdr(reinterpret_cast<void*>(frames[frame_num]), &info) != 0) { in backtrace_string() 142 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in backtrace_string() 143 symbol = info.dli_sname; in backtrace_string() 145 info.dli_fname = nullptr; in backtrace_string() 151 const char* soname = (entry != nullptr) ? entry->name.c_str() : info.dli_fname; in backtrace_string()
|
D | README_api.md | 10 `extern "C" void get_malloc_leak_info(uint8_t** info, size_t* overall_size, size_t* info_size, size… 12 *info* is set to a buffer allocated by the call that contains all of 15 *info\_size* 25 `extern "C" void free_malloc_leak_info(uint8_t* info);` 27 ### Format of info Buffer 53 The total number of these structures returned in *info* is 54 *overall\_size* divided by *info\_size*.
|
/bionic/libc/kernel/uapi/linux/ |
D | btf.h | 39 __u32 info; member 45 #define BTF_INFO_KIND(info) (((info) >> 24) & 0x0f) argument 46 #define BTF_INFO_VLEN(info) ((info) & 0xffff) argument 47 #define BTF_INFO_KFLAG(info) ((info) >> 31) argument
|
D | tls.h | 58 struct tls_crypto_info info; member 65 struct tls_crypto_info info; member 72 struct tls_crypto_info info; member
|
/bionic/tests/libs/ |
D | segment_gap_outer.cpp | 9 android_dlextinfo info = {}; in get_inner() local 10 info.flags = ANDROID_DLEXT_RESERVED_ADDRESS; in get_inner() 15 info.reserved_addr = start_of_gap; in get_inner() 16 info.reserved_size = end_of_gap - start_of_gap; in get_inner() 18 void *handle = android_dlopen_ext("libsegment_gap_inner.so", RTLD_NOW, &info); in get_inner()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 1082 uint8_t* info; in TEST_F() local 1094 debug_get_malloc_leak_info(&info, nullptr, &info_size, &total_memory, &backtrace_size); in TEST_F() 1098 debug_get_malloc_leak_info(&info, &overall_size, nullptr, &total_memory, &backtrace_size); in TEST_F() 1102 debug_get_malloc_leak_info(&info, &overall_size, &info_size, nullptr, &backtrace_size); in TEST_F() 1106 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, nullptr); in TEST_F() 1113 uint8_t* info; in TEST_F() local 1120 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, &backtrace_size); in TEST_F() 1136 uint8_t* info; in TEST_F() local 1142 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, &backtrace_size); in TEST_F() 1143 ASSERT_TRUE(info == nullptr); in TEST_F() [all …]
|
D | backtrace_fake.cpp | 73 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t)… in Unwind() argument 78 *info = g_fake_local_frame_data.front(); in Unwind() 81 for (const auto& frame : *info) { in Unwind()
|
/bionic/libc/dns/resolv/ |
D | res_cache.c | 1970 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _find_named_cache_locked() local 1972 if (info != NULL) return info->cache; in _find_named_cache_locked() 2175 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net() local 2176 if (info != NULL) { in _resolv_populate_res_for_net() 2181 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_net() 2207 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net() 2209 register int *p = info->dnsrch_offset; in _resolv_populate_res_for_net() 2251 struct resolv_cache_info* info = _find_cache_info_locked(netid); in android_net_res_stats_get_info_for_net() local 2252 if (info) { in android_net_res_stats_get_info_for_net() 2253 if (info->nscount > MAXNS) { in android_net_res_stats_get_info_for_net() [all …]
|
/bionic/libdl/ |
D | libdl.cpp | 46 int __loader_dladdr(const void* addr, Dl_info* info); 57 int __loader_dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), 105 int dladdr(const void* addr, Dl_info* info) { in dladdr() argument 106 return __loader_dladdr(addr, info); in dladdr() 126 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { in dl_iterate_phdr() argument
|
/bionic/benchmarks/ |
D | dlfcn_benchmark.cpp | 28 Dl_info info; in bm_dladdr() local 29 int res = dladdr(addr, &info); in bm_dladdr() 31 if (info.dli_fname == nullptr) abort(); in bm_dladdr()
|