Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 46) sorted by relevance

12

/bionic/libc/malloc_debug/
DMapData.cpp70 MapEntry* entry = new MapEntry(start, end, offset, name, name_len, flags); in parse_line() local
73 entry->load_bias = 0; in parse_line()
74 entry->init = true; in parse_line()
75 entry->valid = false; in parse_line()
77 return entry; in parse_line()
81 static inline bool get_val(MapEntry* entry, uintptr_t addr, T* store) { in get_val() argument
82 if (!(entry->flags & PROT_READ) || addr < entry->start || addr + sizeof(T) > entry->end) { in get_val()
93 static bool valid_elf(MapEntry* entry) { in valid_elf() argument
94 uintptr_t addr = entry->start; in valid_elf()
96 if (__builtin_add_overflow(addr, SELFMAG, &end) || end >= entry->end) { in valid_elf()
[all …]
DRecordData.cpp92 ThreadData(RecordData* record_data, ThreadCompleteEntry* entry) in ThreadData()
93 : record_data(record_data), entry(entry) {} in ThreadData()
95 ThreadCompleteEntry* entry; member
108 thread_data->record_data->AddEntryOnly(thread_data->entry); in ThreadKeyDelete()
203 void RecordData::AddEntryOnly(const RecordEntry* entry) { in AddEntryOnly() argument
206 entries_[entry_index] = entry; in AddEntryOnly()
210 void RecordData::AddEntry(const RecordEntry* entry) { in AddEntry() argument
217 AddEntryOnly(entry); in AddEntry()
Dbacktrace.cpp149 const MapEntry* entry = g_map_data.find(frames[frame_num], &rel_pc); in backtrace_string() local
151 const char* soname = (entry != nullptr) ? entry->name.c_str() : info.dli_fname; in backtrace_string()
157 if (entry != nullptr && entry->elf_start_offset != 0) { in backtrace_string()
158 snprintf(offset_buf, sizeof(offset_buf), " (offset 0x%" PRIxPTR ")", entry->elf_start_offset); in backtrace_string()
DPointerData.cpp155 auto entry = key_to_index_.find(key); in AddBacktrace() local
156 if (entry == key_to_index_.end()) { in AddBacktrace()
167 hash_index = entry->second; in AddBacktrace()
212 auto entry = pointers_.find(pointer); in Remove() local
213 if (entry == pointers_.end()) { in Remove()
218 hash_index = entry->second.hash_index; in Remove()
230 auto entry = pointers_.find(pointer); in GetFrames() local
231 if (entry == pointers_.end()) { in GetFrames()
234 hash_index = entry->second.hash_index; in GetFrames()
387 for (const auto& entry : pointers_) { in GetList() local
[all …]
DRecordData.h155 void AddEntry(const RecordEntry* entry);
156 void AddEntryOnly(const RecordEntry* entry);
/bionic/libc/bionic/
Dpthread_atfork.cpp64 void push_back(atfork_t* entry) { in push_back() argument
65 entry->next = nullptr; in push_back()
66 entry->prev = last_; in push_back()
67 if (entry->prev != nullptr) { in push_back()
68 entry->prev->next = entry; in push_back()
71 first_ = entry; in push_back()
73 last_ = entry; in push_back()
81 atfork_t* entry = it; in remove_if() local
83 remove(entry); in remove_if()
91 void remove(atfork_t* entry) { in remove() argument
[all …]
Ddirent.cpp123 dirent* entry = d->next_; in __readdir_locked() local
124 d->next_ = reinterpret_cast<dirent*>(reinterpret_cast<char*>(entry) + entry->d_reclen); in __readdir_locked()
125 d->available_bytes_ -= entry->d_reclen; in __readdir_locked()
128 d->current_pos_ = static_cast<long>(entry->d_off); in __readdir_locked()
129 return entry; in __readdir_locked()
139 int readdir_r(DIR* d, dirent* entry, dirent** result) { in readdir_r() argument
155 memcpy(entry, next, next->d_reclen); in readdir_r()
156 *result = entry; in readdir_r()
Dscandir.cpp52 bool Add(dirent* entry) { in Add() argument
64 dirent* copy = CopyDirent(entry); in Add()
115 dirent* entry; in scandirat() local
116 while ((entry = reader.ReadEntry()) != nullptr) { in scandirat()
118 if (filter != nullptr && !(*filter)(entry)) { in scandirat()
121 names.Add(entry); in scandirat()
Datexit.cpp62 bool append_entry(const AtexitEntry& entry);
91 bool AtexitArray::append_entry(const AtexitEntry& entry) { in append_entry() argument
97 array_[idx] = entry; in append_entry()
130 const AtexitEntry entry = array_[src]; in recompact() local
132 if (entry.fn != nullptr) { in recompact()
133 array_[dst++] = entry; in recompact()
258 const AtexitEntry entry = g_array.extract_entry(i); in __cxa_finalize() local
261 entry.fn(entry.arg); in __cxa_finalize()
Dsysinfo.cpp55 dirent* entry; in get_nprocs_conf() local
56 while ((entry = reader.ReadEntry()) != nullptr) { in get_nprocs_conf()
57 if (entry->d_type == DT_DIR && __matches_cpuN(entry->d_name)) { in get_nprocs_conf()
/bionic/libfdtrack/
Dfdtrack.cpp70 for (auto& entry : stack_traces) { in ctor() local
71 entry.backtrace.reserve(kStackDepth); in ctor()
97 if (FdEntry* entry = GetFdEntry(event->fd); entry) { in fd_hook() local
98 std::lock_guard<std::mutex> lock(entry->mutex); in fd_hook()
99 entry->backtrace.clear(); in fd_hook()
100 Unwinder().Unwind(&entry->backtrace, kStackDepth); in fd_hook()
103 if (FdEntry* entry = GetFdEntry(event->fd); entry) { in fd_hook() local
104 std::lock_guard<std::mutex> lock(entry->mutex); in fd_hook()
105 entry->backtrace.clear(); in fd_hook()
116 FdEntry* entry = GetFdEntry(fd); in fdtrack_iterate() local
[all …]
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dhsearch_r.c49 ENTRY *entry = &hsearch->entries[index & hsearch->index_mask]; in hsearch_lookup_free() local
50 if (entry->key == NULL) in hsearch_lookup_free()
51 return (entry); in hsearch_lookup_free()
79 ENTRY *entry, *old_entries, *new_entries; in hsearch_r() local
90 entry = &hsearch->entries[index & hsearch->index_mask]; in hsearch_r()
91 if (entry->key == NULL) in hsearch_r()
93 if (strcmp(entry->key, item.key) == 0) { in hsearch_r()
94 *retval = entry; in hsearch_r()
125 entry = &old_entries[i]; in hsearch_r()
126 if (entry->key != NULL) { in hsearch_r()
[all …]
/bionic/tests/
Dmntent_test.cpp29 struct mntent entry; in TEST() local
31 while (getmntent_r(fp, &entry, buf, sizeof(buf)) != nullptr) { in TEST()
32 if (strcmp(entry.mnt_fsname, "proc") == 0 && strcmp(entry.mnt_dir, "/proc") == 0) { in TEST()
Dlink_test.cpp238 static uintptr_t read_exidx_func(uintptr_t* entry) { in read_exidx_func() argument
239 int32_t offset = *entry; in read_exidx_func()
244 return reinterpret_cast<uintptr_t>(entry) + offset; in read_exidx_func()
/bionic/tests/libs/
Dbionic_tests_zipalign.cpp50 ZipEntry entry; in GetEntries() local
52 while ((return_value = Next(cookie, &entry, &name)) == 0) { in GetEntries()
53 entries->emplace_back(std::make_pair(std::make_unique<ZipEntry>(entry), name)); in GetEntries()
78 for (auto& entry : entries) { in CreateAlignedZip() local
79 ZipEntry* zip_entry = entry.first.get(); in CreateAlignedZip()
80 std::string& zip_name = entry.second; in CreateAlignedZip()
/bionic/libc/system_properties/
Dcontexts_split.cpp125 static inline int read_spec_entry(char** entry, char** ptr, int* len) { in read_spec_entry() argument
126 *entry = nullptr; in read_spec_entry()
140 *entry = strndup(tmp_buf, *len); in read_spec_entry()
141 if (!*entry) return -1; in read_spec_entry()
330 auto entry = ListFind(prefixes_, [name](PrefixNode* l) { in GetPropAreaForName() local
333 if (!entry) { in GetPropAreaForName()
337 auto cnode = entry->context; in GetPropAreaForName()
/bionic/linker/
Dlinked_list.h45 explicit LinkedListIterator(LinkedListEntry<T>* entry) : entry_(entry) {} in LinkedListIterator() argument
120 LinkedListEntry<T>* entry = head_; in pop_front() local
121 T* element = entry->element; in pop_front()
122 head_ = entry->next; in pop_front()
123 Allocator::free(entry); in pop_front()
Dlinker_common_types.h47 static void free(LinkedListEntry<soinfo>* entry);
57 static void free(LinkedListEntry<android_namespace_t>* entry);
/bionic/libc/kernel/uapi/linux/netfilter_ipv6/
Dip6_tables.h87 struct ip6t_entry entry; member
91 struct ip6t_entry entry; member
98 {.entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_standard)),.target = XT_TARGET_INIT(XT_STANDARD_TARGET…
101 {.entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)),.target = XT_TARGET_INIT(XT_ERROR_TARGET, size…
/bionic/libc/kernel/uapi/linux/netfilter/
Dx_tables.h101 …atch_foreach(pos,entry) for((pos) = (struct xt_entry_match *) entry->elems; (pos) < (struct xt_ent… argument
/bionic/libc/tzcode/
Dbionic.cpp166 index_entry_t* entry = reinterpret_cast<index_entry_t*>(index); in __bionic_open_tzdata_path() local
169 memcpy(this_id, entry->buf, NAME_LENGTH); in __bionic_open_tzdata_path()
173 specific_zone_offset = ntohl(entry->start) + ntohl(header.data_offset); in __bionic_open_tzdata_path()
174 *entry_length = ntohl(entry->length); in __bionic_open_tzdata_path()
178 ++entry; in __bionic_open_tzdata_path()
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dinsque.c40 insque(void *entry, void *pred) in insque() argument
42 struct qelem *e = entry; in insque()
/bionic/linker/arch/arm_neon/
Dlinker_gnu_hash_neon.cpp124 const struct GnuHashInitEntry* entry = &kInitTable[offset]; in calculate_gnu_hash_neon() local
127 chunk |= vld1_u8(reinterpret_cast<const uint8_t*>(&entry->ignore_mask)); in calculate_gnu_hash_neon()
130 uint32x4_t accum_hi = { entry->accum, 0, 0, 0 }; in calculate_gnu_hash_neon()
/bionic/libc/kernel/uapi/linux/
Dmpls.h24 __be32 entry; member
/bionic/tests/headers/posix/
Dsearch_h.c35 TYPE(struct entry); in search_h()

12