Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 60) 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 …]
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()
Dlink_test.cpp46 void DoChecks(dl_phdr_info* info, size_t s) { in TEST()
49 ASSERT_TRUE(info->dlpi_name != nullptr); in TEST()
52 for (ElfW(Half) i = 0; i < info->dlpi_phnum; ++i) { in TEST()
53 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST()
55 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(info->dlpi_addr + in TEST()
60 ASSERT_EQ(info->dlpi_phnum, ehdr->e_phnum); in TEST()
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()
Dsignal_test.cpp582 static void SigqueueSignalHandler(int signum, siginfo_t* info, void*) { in SigqueueSignalHandler() argument
584 ASSERT_EQ(SIGALRM, info->si_signo); in SigqueueSignalHandler()
585 ASSERT_EQ(SI_QUEUE, info->si_code); in SigqueueSignalHandler()
586 ASSERT_EQ(1, info->si_value.sival_int); in SigqueueSignalHandler()
615 siginfo_t info; in TEST() local
617 ASSERT_EQ(SIGALRM, sigwaitinfo(&just_SIGALRM, &info)); in TEST()
619 ASSERT_EQ(SIGALRM, info.si_signo); in TEST()
620 ASSERT_EQ(1, info.si_value.sival_int); in TEST()
638 siginfo_t info; in TEST() local
640 ASSERT_EQ(SIGRTMIN, sigwaitinfo64(&just_SIGRTMIN, &info)); in TEST()
[all …]
/bionic/libc/dns/net/
Dsethostent.c107 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 …]
Dgethnamaddr.c707 struct getnamaddr info; in gethostbyname_internal_real() local
783 info.hp = hp; in gethostbyname_internal_real()
784 info.buf = buf; in gethostbyname_internal_real()
785 info.buflen = buflen; in gethostbyname_internal_real()
786 info.he = he; in gethostbyname_internal_real()
787 if (nsdispatch(&info, dtab, NSDB_HOSTS, "gethostbyname", in gethostbyname_internal_real()
869 struct getnamaddr info; in android_gethostbyaddrfornetcontext_real() local
911 info.hp = hp; in android_gethostbyaddrfornetcontext_real()
912 info.buf = buf; in android_gethostbyaddrfornetcontext_real()
913 info.buflen = buflen; in android_gethostbyaddrfornetcontext_real()
[all …]
/bionic/tools/relocation_packer/src/
Delf_traits.h39 static inline Word elf_r_type(Word info) { return ELF32_R_TYPE(info); } in elf_r_type()
40 static inline int elf_st_type(uint8_t info) { return ELF32_ST_TYPE(info); } in elf_st_type()
41 static inline Word elf_r_sym(Word info) { return ELF32_R_SYM(info); } in elf_r_sym()
63 static inline Xword elf_r_type(Xword info) { return ELF64_R_TYPE(info); } in elf_r_type()
64 static inline int elf_st_type(uint8_t info) { return ELF64_ST_TYPE(info); } in elf_st_type()
65 static inline Word elf_r_sym(Xword info) { return ELF64_R_SYM(info); } in elf_r_sym()
Ddebug_unittest.cc14 std::ostringstream info; in TEST() local
16 Logger::SetStreams(&info, &error); in TEST()
22 EXPECT_EQ("INFO: INFO log message\n", info.str()); in TEST()
30 std::ostringstream info; in TEST() local
32 Logger::SetStreams(&info, &error); in TEST()
42 EXPECT_EQ("INFO: INFO log message\n", info.str()); in TEST()
50 std::ostringstream info; in TEST() local
52 Logger::SetStreams(&info, &error); in TEST()
58 EXPECT_EQ("", info.str()); in TEST()
68 "INFO: VLOG 1 INFO log message\n", info.str()); in TEST()
[all …]
/bionic/linker/
Dlinker.h61 #define ELF64_R_SYM(info) (((info) >> 0) & 0xffffffff) argument
62 #define ELF64_R_SSYM(info) (((info) >> 32) & 0xff) argument
63 #define ELF64_R_TYPE3(info) (((info) >> 40) & 0xff) argument
64 #define ELF64_R_TYPE2(info) (((info) >> 48) & 0xff) argument
65 #define ELF64_R_TYPE(info) (((info) >> 56) & 0xff) argument
117 int do_dl_iterate_phdr(int (*cb)(dl_phdr_info* info, size_t size, void* data), void* data);
128 int do_dladdr(const void* addr, Dl_info* info);
Dlinker_allocator.cpp211 page_info* info = reinterpret_cast<page_info*>(map_ptr); in alloc_page() local
212 memcpy(info->signature, kSignature, sizeof(kSignature)); in alloc_page()
213 info->type = type_; in alloc_page()
214 info->allocator_addr = this; in alloc_page()
220 small_object_block_record* first_block = reinterpret_cast<small_object_block_record*>(info + 1); in alloc_page()
256 page_info* info = reinterpret_cast<page_info*>(map_ptr); in alloc_mmap() local
257 memcpy(info->signature, kSignature, sizeof(kSignature)); in alloc_mmap()
258 info->type = kLargeObject; in alloc_mmap()
259 info->allocated_size = allocated_size; in alloc_mmap()
261 return info + 1; in alloc_mmap()
[all …]
/bionic/libc/bionic/
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, NULL); in waitid()
Dsignal.cpp212 siginfo_t info; in sigqueue() local
213 memset(&info, 0, sizeof(siginfo_t)); in sigqueue()
214 info.si_signo = sig; in sigqueue()
215 info.si_code = SI_QUEUE; in sigqueue()
216 info.si_pid = getpid(); in sigqueue()
217 info.si_uid = getuid(); in sigqueue()
218 info.si_value = value; in sigqueue()
219 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
275 return sigtimedwait64(&set.sigset64, info, timeout); in sigtimedwait()
[all …]
/bionic/libc/malloc_debug/
DPointerData.cpp233 void PointerData::LogFreeError(const FreePointerInfoType& info, size_t usable_size) { in LogFreeError() argument
235 uint8_t* memory = reinterpret_cast<uint8_t*>(info.pointer); in LogFreeError()
244 if (info.hash_index > kBacktraceEmptyIndex) { in LogFreeError()
246 auto frame_entry = frames_.find(info.hash_index); in LogFreeError()
257 void PointerData::VerifyFreedPointer(const FreePointerInfoType& info) { in VerifyFreedPointer() argument
261 Header* header = g_debug->GetHeader(reinterpret_cast<const void*>(info.pointer)); in VerifyFreedPointer()
265 info.pointer, header->tag); in VerifyFreedPointer()
274 usable_size = g_dispatch->malloc_usable_size(reinterpret_cast<const void*>(info.pointer)); in VerifyFreedPointer()
280 const uint8_t* memory = reinterpret_cast<const uint8_t*>(info.pointer); in VerifyFreedPointer()
284 LogFreeError(info, usable_size); in VerifyFreedPointer()
[all …]
Dbacktrace.cpp142 Dl_info info; in backtrace_string() local
143 if (dladdr(reinterpret_cast<void*>(frames[frame_num]), &info) != 0) { in backtrace_string()
144 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in backtrace_string()
145 symbol = info.dli_sname; in backtrace_string()
147 info.dli_fname = nullptr; in backtrace_string()
153 const char* soname = (entry != nullptr) ? entry->name.c_str() : info.dli_fname; in backtrace_string()
DREADME_api.md10 `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/tools/bionicbb/
Dpresubmit.py48 def should_skip_build(info): argument
49 if info['MessageType'] not in ('newchange', 'newpatchset', 'comment'):
53 change_id = info['Change-Id']
54 patch_set = info['PatchSet']
82 logging.info('Cleaning: %s %s', build, url)
132 logging.info('Building: %s => %s %s %s', project, build, url,
158 logging.info('Dropped rejection: %s', gerrit_info['Change-Id'])
203 logging.info('Skipping %s: %s', gerrit_info['MessageType'],
Dtasks.py30 info = {}
33 info[match.group(1)] = match.group(2).strip()
34 return info
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp995 uint8_t* info; in TEST_F() local
1007 debug_get_malloc_leak_info(&info, nullptr, &info_size, &total_memory, &backtrace_size); in TEST_F()
1011 debug_get_malloc_leak_info(&info, &overall_size, nullptr, &total_memory, &backtrace_size); in TEST_F()
1015 debug_get_malloc_leak_info(&info, &overall_size, &info_size, nullptr, &backtrace_size); in TEST_F()
1019 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, nullptr); in TEST_F()
1026 uint8_t* info; in TEST_F() local
1033 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, &backtrace_size); in TEST_F()
1049 uint8_t* info; in TEST_F() local
1055 debug_get_malloc_leak_info(&info, &overall_size, &info_size, &total_memory, &backtrace_size); in TEST_F()
1056 ASSERT_TRUE(info == nullptr); in TEST_F()
[all …]
/bionic/libc/tools/
Dgensyscalls.py563 logging.info("generating " + glibc_syscalls_h_path)
608 logging.info(">>> generating " + filename)
616 logging.info("scanning for existing architecture-specific stub files...")
620 logging.info("scanning " + os.path.join(bionic_libc_root, arch_dir))
626 logging.info("found %d stub files" % len(self.old_stubs))
629 logging.info("creating %s..." % bionic_temp)
632 logging.info("re-generating stubs and support files...")
637 logging.info("comparing files...")
646 logging.info("new file: " + stub)
651 logging.info("changed file: " + stub)
[all …]
/bionic/libc/dns/resolv/
Dres_cache.c1970 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()
2169 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net() local
2170 if (info != NULL) { in _resolv_populate_res_for_net()
2175 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_net()
2201 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net()
2203 register int *p = info->dnsrch_offset; in _resolv_populate_res_for_net()
2245 struct resolv_cache_info* info = _find_cache_info_locked(netid); in android_net_res_stats_get_info_for_net() local
2246 if (info) { in android_net_res_stats_get_info_for_net()
2247 if (info->nscount > MAXNS) { in android_net_res_stats_get_info_for_net()
[all …]
/bionic/libc/kernel/uapi/linux/
Dpps.h73 struct pps_kinfo info; member
77 struct pps_kinfo_compat info; member
Datm_zatm.h35 struct zatm_pool_info info; member
/bionic/libdl/
Dlibdl.cpp43 int __loader_dladdr(const void* addr, Dl_info* info);
54 int __loader_dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data),
126 int dladdr(const void* addr, Dl_info* info) { in dladdr() argument
127 return __loader_dladdr(addr, info); in dladdr()
147 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { in dl_iterate_phdr() argument
/bionic/libc/system_properties/
Dprop_area.cpp175 prop_info* info; in new_prop_info() local
189 info = new (p) prop_info(name, namelen, long_value_offset); in new_prop_info()
191 info = new (p) prop_info(name, namelen, value, valuelen); in new_prop_info()
194 return info; in new_prop_info()
344 prop_info* info = to_prop_info(&trie->prop); in foreach_property() local
345 if (!info) return false; in foreach_property()
346 propfn(info, cookie); in foreach_property()

123