Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 74) sorted by relevance

123

/bionic/tests/
Delf_test.cpp23 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 …]
Dlink_test.cpp53 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 …]
Dstack_unwinding_test.cpp46 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()
Delftls_dl_test.cpp266 Dl_info info; in TEST() local
269 ASSERT_EQ(0, dladdr(&elftls_shared_var, &info)); in TEST()
275 ASSERT_EQ(0, dladdr(var_addr, &info)); in TEST()
287 Dl_info info; in TEST() local
288 ASSERT_NE(0, dladdr(local_addr, &info)); in TEST()
292 ASSERT_TRUE(realpath(info.dli_fname, dli_realpath)); in TEST()
294 ASSERT_STREQ(nullptr, info.dli_sname); in TEST()
295 ASSERT_EQ(nullptr, info.dli_saddr); in TEST()
312 auto callback = [](dl_phdr_info* info, size_t, void* data) { in TEST() argument
317 …if (strcmp(android::base::Basename(info->dlpi_name).c_str(), "libtest_elftls_dynamic.so") != 0) re… in TEST()
[all …]
Ddlfcn_symlink_support.cpp35 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()
Dmemtag_stack_test.cpp51 [](const ::testing::TestParamInfo<MemtagStackTest::ParamType>& info) { in __anon289024e40202() argument
52 std::string s = std::get<0>(info.param); in __anon289024e40202()
53 if (std::get<1>(info.param)) s += "_static"; in __anon289024e40202()
/bionic/libc/dns/net/
Dsethostent.c104 struct getnamaddr *info = rv; in _hf_gethtbyname() local
118 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname()
122 hp = _hf_gethtbyname2(name, AF_INET, info); in _hf_gethtbyname()
126 hp = _hf_gethtbyname2(name, af, info); in _hf_gethtbyname()
129 if (*info->he == NETDB_INTERNAL && errno == ENOSPC) { in _hf_gethtbyname()
132 *info->he = HOST_NOT_FOUND; in _hf_gethtbyname()
139 _hf_gethtbyname2(const char *name, int af, struct getnamaddr *info) in _hf_gethtbyname2() argument
154 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
158 if ((ptr = buf = malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2()
159 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
[all …]
Dgethnamaddr.c678 struct getnamaddr info; in gethostbyname_internal_real() local
754 info.hp = hp; in gethostbyname_internal_real()
755 info.buf = buf; in gethostbyname_internal_real()
756 info.buflen = buflen; in gethostbyname_internal_real()
757 info.he = he; in gethostbyname_internal_real()
758 if (nsdispatch(&info, dtab, NSDB_HOSTS, "gethostbyname", in gethostbyname_internal_real()
838 struct getnamaddr info; in android_gethostbyaddrfornetcontext_real() local
880 info.hp = hp; in android_gethostbyaddrfornetcontext_real()
881 info.buf = buf; in android_gethostbyaddrfornetcontext_real()
882 info.buflen = buflen; in android_gethostbyaddrfornetcontext_real()
[all …]
/bionic/libc/bionic/
Dbionic_allocator.cpp202 memcpy(page->info.signature, kSignature, sizeof(kSignature)); in alloc_page()
203 page->info.type = type_; in alloc_page()
204 page->info.allocator_addr = this; in alloc_page()
282 page_info* info = get_page_info_unchecked(result); in alloc_mmap() local
283 memcpy(info->signature, kSignature, sizeof(kSignature)); in alloc_mmap()
284 info->type = kLargeObject; in alloc_mmap()
285 info->allocated_size = allocated_size; in alloc_mmap()
331 page_info* info = get_page_info_unchecked(ptr); in get_page_info() local
332 if (memcmp(info->signature, kSignature, sizeof(kSignature)) != 0) { in get_page_info()
334 *reinterpret_cast<const unsigned*>(info->signature), in get_page_info()
[all …]
Dexecinfo.cpp177 Dl_info info; in backtrace_symbols_fd() local
178 if (dladdr(address, &info) != 0) { in backtrace_symbols_fd()
179 if (info.dli_fname != nullptr) { in backtrace_symbols_fd()
180 write(fd, info.dli_fname, strlen(info.dli_fname)); in backtrace_symbols_fd()
182 if (info.dli_sname != nullptr) { in backtrace_symbols_fd()
183 dprintf(fd, "(%s+0x%" PRIxPTR ") ", info.dli_sname, in backtrace_symbols_fd()
184 reinterpret_cast<uintptr_t>(address) - reinterpret_cast<uintptr_t>(info.dli_saddr)); in backtrace_symbols_fd()
186 dprintf(fd, "(+%p) ", info.dli_saddr); in backtrace_symbols_fd()
Dsysconf.cpp65 sysconf_caches info = {}; in __sysconf_caches() local
67 info.l1_i = sysconf_cache::from_size_and_geometry(AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY); in __sysconf_caches()
68 info.l1_d = sysconf_cache::from_size_and_geometry(AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY); in __sysconf_caches()
69 info.l2 = sysconf_cache::from_size_and_geometry(AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY); in __sysconf_caches()
70 info.l3 = sysconf_cache::from_size_and_geometry(AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY); in __sysconf_caches()
71 return info; in __sysconf_caches()
80 sysconf_caches info = {}; in __sysconf_caches() local
84 info.l1_i.linesize = 4 << (ctr_el0 & 0xf); in __sysconf_caches()
85 info.l1_d.linesize = 4 << ((ctr_el0 >> 16) & 0xf); in __sysconf_caches()
86 return info; in __sysconf_caches()
[all …]
Dsignal.cpp222 siginfo_t info; in sigqueue() local
223 memset(&info, 0, sizeof(siginfo_t)); in sigqueue()
224 info.si_signo = sig; in sigqueue()
225 info.si_code = SI_QUEUE; in sigqueue()
226 info.si_pid = getpid(); in sigqueue()
227 info.si_uid = getuid(); in sigqueue()
228 info.si_value = value; in sigqueue()
229 return __rt_sigqueueinfo(pid, sig, &info); in sigqueue()
272 int sigtimedwait(const sigset_t* bionic_set, siginfo_t* info, const timespec* timeout) { in sigtimedwait() argument
274 return sigtimedwait64(set.ptr, info, timeout); in sigtimedwait()
[all …]
Dwait.cpp32 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()
Dandroid_profiling_dynamic.cpp78 static void HandleProfilingSignal(int /*signal_number*/, siginfo_t* info, void* /*ucontext*/) { in HandleProfilingSignal() argument
81 if (info->si_code != SI_QUEUE) { in HandleProfilingSignal()
85 int signal_value = info->si_value.sival_int; in HandleProfilingSignal()
187 static void HandleSigsysSeccompOverride(int /*signal_number*/, siginfo_t* info, in HandleSigsysSeccompOverride() argument
190 if (info->si_code != SYS_SECCOMP) { in HandleSigsysSeccompOverride()
197 info->si_syscall); in HandleSigsysSeccompOverride()
/bionic/libc/private/
Dbionic_inline_raise.h43 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);
67 register long a3 __asm__("a3") = reinterpret_cast<long>(&info);
75 register long r10 __asm__("r10") = reinterpret_cast<long>(&info);
82 syscall(__NR_rt_tgsigqueueinfo, pid, tid, sig, &info);
/bionic/tests/libs/
Dsegment_gap_outer.cpp9 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()
Dheap_tagging_helper.cpp28 void action(int signo, siginfo_t* info __unused, void*) { in action()
30 if (signo == 11 && info->si_code == SEGV_MTEAERR) { in action()
35 if (signo == 11 && info->si_code == SEGV_MTESERR) { in action()
45 void action2(int signo, siginfo_t* info __unused, void*) { in action2()
/bionic/libc/malloc_debug/
DUnwindBacktrace.cpp73 const unwindstack::FrameData* info = &frame_info[i]; in UnwindLog() local
74 auto map_info = info->map_info; in UnwindLog()
76 …std::string line = android::base::StringPrintf(" #%0zd pc %" PAD_PTR " ", i, info->rel_… in UnwindLog()
89 if (!info->function_name.empty()) { in UnwindLog()
92 abi::__cxa_demangle(info->function_name.c_str(), nullptr, nullptr, nullptr); in UnwindLog()
97 line += info->function_name; in UnwindLog()
99 if (info->function_offset != 0) { in UnwindLog()
100 line += "+" + std::to_string(info->function_offset); in UnwindLog()
DPointerData.cpp291 void PointerData::LogFreeError(const FreePointerInfoType& info, size_t max_cmp_bytes) { in LogFreeError() argument
293 uintptr_t pointer = DemanglePointer(info.mangled_ptr); in LogFreeError()
303 if (info.hash_index > kBacktraceEmptyIndex) { in LogFreeError()
305 LogBacktrace(info.hash_index); in LogFreeError()
314 void PointerData::VerifyFreedPointer(const FreePointerInfoType& info) { in VerifyFreedPointer() argument
316 uintptr_t pointer = DemanglePointer(info.mangled_ptr); in VerifyFreedPointer()
346 LogFreeError(info, max_cmp_bytes); in VerifyFreedPointer()
363 FreePointerInfoType info(free_pointers_.front()); in AddFreed() local
365 VerifyFreedPointer(info); in AddFreed()
366 RemoveBacktrace(info.hash_index); in AddFreed()
[all …]
Dbacktrace.cpp131 Dl_info info; in backtrace_string() local
132 if (dladdr(reinterpret_cast<void*>(frames[frame_num]), &info) != 0) { in backtrace_string()
133 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in backtrace_string()
134 symbol = info.dli_sname; in backtrace_string()
136 info.dli_fname = nullptr; in backtrace_string()
142 const char* soname = (entry != nullptr) ? entry->name().c_str() : info.dli_fname; in backtrace_string()
/bionic/libc/kernel/uapi/linux/
Dbtf.h27 __u32 info; member
33 #define BTF_INFO_KIND(info) (((info) >> 24) & 0x1f) argument
34 #define BTF_INFO_VLEN(info) ((info) & 0xffff) argument
35 #define BTF_INFO_KFLAG(info) ((info) >> 31) argument
Dtls.h78 struct tls_crypto_info info; member
85 struct tls_crypto_info info; member
92 struct tls_crypto_info info; member
99 struct tls_crypto_info info; member
106 struct tls_crypto_info info; member
113 struct tls_crypto_info info; member
120 struct tls_crypto_info info; member
127 struct tls_crypto_info info; member
/bionic/libdl/
Dlibdl.cpp47 int __loader_dladdr(const void* addr, Dl_info* info);
58 int __loader_dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data),
77 int signal_number, siginfo_t* info, void* context);
109 int dladdr(const void* addr, Dl_info* info) { in dladdr() argument
110 return __loader_dladdr(addr, info); in dladdr()
130 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { in dl_iterate_phdr() argument
150 __attribute__((__weak__)) bool android_handle_signal(int signal_number, siginfo_t* info, in android_handle_signal() argument
152 return __loader_android_handle_signal(signal_number, info, context); in android_handle_signal()
/bionic/benchmarks/
Ddlfcn_benchmark.cpp28 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()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp1151 uint8_t* info; in TEST_F() local
1163 debug_get_malloc_leak_info(&info, nullptr, &info_size, &total_memory, &backtrace_size); in TEST_F()
1167 debug_get_malloc_leak_info(&info, &overall_size, nullptr, &total_memory, &backtrace_size); in TEST_F()
1171 debug_get_malloc_leak_info(&info, &overall_size, &info_size, nullptr, &backtrace_size); in TEST_F()
1175 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, nullptr); in TEST_F()
1182 uint8_t* info; in TEST_F() local
1189 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, &backtrace_size); in TEST_F()
1205 uint8_t* info; in TEST_F() local
1211 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, &backtrace_size); in TEST_F()
1212 ASSERT_TRUE(info == nullptr); in TEST_F()
[all …]

123