Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 47) 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.cpp104 ThreadData(RecordData* record_data, ThreadCompleteEntry* entry) in ThreadData()
105 : record_data(record_data), entry(entry) {} in ThreadData()
107 ThreadCompleteEntry* entry; member
120 thread_data->record_data->AddEntryOnly(thread_data->entry); in ThreadKeyDelete()
191 void RecordData::AddEntryOnly(const RecordEntry* entry) { in AddEntryOnly() argument
198 entries_[cur_index_++].reset(entry); in AddEntryOnly()
204 void RecordData::AddEntry(const RecordEntry* entry) { in AddEntry() argument
211 AddEntryOnly(entry); in AddEntry()
Dbacktrace.cpp131 const MapEntry* entry = g_map_data.find(frames[frame_num], &rel_pc); in backtrace_string() local
133 const char* soname = (entry != nullptr) ? entry->name.c_str() : info.dli_fname; in backtrace_string()
139 if (entry != nullptr && entry->elf_start_offset != 0) { in backtrace_string()
140 snprintf(offset_buf, sizeof(offset_buf), " (offset 0x%" PRIxPTR ")", entry->elf_start_offset); in backtrace_string()
DPointerData.cpp172 auto entry = key_to_index_.find(key); in AddBacktrace() local
173 if (entry == key_to_index_.end()) { in AddBacktrace()
183 hash_index = entry->second; in AddBacktrace()
229 auto entry = pointers_.find(mangled_ptr); in Remove() local
230 if (entry == pointers_.end()) { in Remove()
235 hash_index = entry->second.hash_index; in Remove()
247 auto entry = pointers_.find(mangled_ptr); in GetFrames() local
248 if (entry == pointers_.end()) { in GetFrames()
251 hash_index = entry->second.hash_index; in GetFrames()
405 for (const auto& entry : pointers_) { in GetList() local
[all …]
DRecordData.h162 void AddEntry(const RecordEntry* entry);
163 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.cpp51 bool Add(dirent* entry) { in Add() argument
63 dirent* copy = CopyDirent(entry); in Add()
111 dirent* entry; in scandirat() local
112 while ((entry = reader.ReadEntry()) != nullptr) { in scandirat()
114 if (filter != nullptr && !(*filter)(entry)) { in scandirat()
117 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()
/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/libfdtrack/
Dfdtrack.cpp92 for (auto& entry : stack_traces) { in ctor() local
93 entry.backtrace.reserve(kStackDepth); in ctor()
132 if (FdEntry* entry = GetFdEntry(event->fd); entry) { in fd_hook() local
133 std::lock_guard<std::mutex> lock(entry->mutex); in fd_hook()
134 entry->backtrace.clear(); in fd_hook()
140 entry->backtrace = unwinder.ConsumeFrames(); in fd_hook()
143 if (FdEntry* entry = GetFdEntry(event->fd); entry) { in fd_hook() local
144 std::lock_guard<std::mutex> lock(entry->mutex); in fd_hook()
145 entry->backtrace.clear(); in fd_hook()
156 FdEntry* entry = GetFdEntry(fd); in fdtrack_iterate() local
[all …]
/bionic/libc/system_properties/
Dcontexts_split.cpp123 static inline int read_spec_entry(char** entry, char** ptr, int* len) { in read_spec_entry() argument
124 *entry = nullptr; in read_spec_entry()
138 *entry = strndup(tmp_buf, *len); in read_spec_entry()
139 if (!*entry) return -1; in read_spec_entry()
322 auto entry = ListFind(prefixes_, [name](PrefixNode* l) { in GetPrefixNodeForName() local
326 return entry; in GetPrefixNodeForName()
330 auto entry = GetPrefixNodeForName(name); in GetPropAreaForName() local
331 if (!entry) { in GetPropAreaForName()
335 auto cnode = entry->context; in GetPropAreaForName()
/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/tests/
Dmntent_test.cpp40 struct mntent entry; in TEST() local
43 while (getmntent_r(fp, &entry, buf, sizeof(buf)) != nullptr) { in TEST()
44 ASSERT_EQ(fsnames[i], entry.mnt_fsname); in TEST()
45 ASSERT_EQ(dirs[i], entry.mnt_dir); 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/libc/kernel/tools/
Dupdate_all.py31 for entry in files:
33 if entry == "BUILD":
35 os.remove(os.path.join(root, entry))
36 for entry in dirs:
37 shutil.rmtree(os.path.join(root, 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.cpp172 index_entry_t* entry = reinterpret_cast<index_entry_t*>(index); in __bionic_open_tzdata_path() local
175 memcpy(this_id, entry->buf, NAME_LENGTH); in __bionic_open_tzdata_path()
179 specific_zone_offset = ntohl(entry->start) + ntohl(header.data_offset); in __bionic_open_tzdata_path()
180 *entry_length = ntohl(entry->length); in __bionic_open_tzdata_path()
184 ++entry; in __bionic_open_tzdata_path()
/bionic/linker/
Dlinked_list.h45 explicit LinkedListIterator(LinkedListEntry<T>* entry) : entry_(entry) {} in LinkedListIterator() argument
139 LinkedListEntry<T>* entry = header_->head; in pop_front() local
140 T* element = entry->element; in pop_front()
141 header_->head = entry->next; in pop_front()
142 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/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.cpp126 const struct GnuHashInitEntry* entry = &kInitTable[offset]; in calculate_gnu_hash_neon() local
129 chunk |= vld1_u8(reinterpret_cast<const uint8_t*>(&entry->ignore_mask)); in calculate_gnu_hash_neon()
132 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