Home
last modified time | relevance | path

Searched refs:entries (Results 1 – 25 of 34) sorted by relevance

12

/bionic/benchmarks/
Dmalloc_sql_benchmark.cpp53 void BenchmarkMalloc(MallocEntry entries[], size_t total_entries, size_t max_allocs) { in BenchmarkMalloc() argument
57 switch (entries[i].type) { in BenchmarkMalloc()
59 ptrs[entries[i].idx] = malloc(entries[i].size); in BenchmarkMalloc()
62 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 10; in BenchmarkMalloc()
65 ptrs[entries[i].idx] = calloc(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
68 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 20; in BenchmarkMalloc()
71 ptrs[entries[i].idx] = memalign(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
74 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 30; in BenchmarkMalloc()
77 if (entries[i].arg2 == 0) { in BenchmarkMalloc()
78 ptrs[entries[i].idx] = realloc(nullptr, entries[i].size); in BenchmarkMalloc()
[all …]
/bionic/tests/
Ddirent_test.cpp42 void ScanEntries(DirEntT** entries, int entry_count, in ScanEntries() argument
45 name_set.insert(entries[i]->d_name); in ScanEntries()
46 name_list.push_back(entries[i]->d_name); in ScanEntries()
47 free(entries[i]); in ScanEntries()
49 free(entries); in ScanEntries()
54 dirent** entries; in TEST() local
55 int entry_count = scandir("/proc/self", &entries, nullptr, alphasort); in TEST()
65 ScanEntries(entries, entry_count, name_set, unsorted_name_list); in TEST()
88 dirent** entries; in TEST() local
89 int entry_count = scandir("/proc/self", &entries, nullptr, alphasort); in TEST()
[all …]
Dlink_test.cpp256 eit_entry_t* entries = reinterpret_cast<eit_entry_t*>(dl_unwind_find_exidx( in TEST() local
258 ASSERT_TRUE(entries != nullptr); in TEST()
266 ASSERT_TRUE((entries[i].one & (1<<31)) == 0); in TEST()
268 uintptr_t exidx_func = read_exidx_func(&entries[i].one); in TEST()
276 EXPECT_GE(exidx_func, read_exidx_func(&entries[i - 1].one)) << i; in TEST()
Dstdlib_test.cpp417 s entries[3]; in TEST() local
418 strcpy(entries[0].name, "charlie"); in TEST()
419 strcpy(entries[1].name, "bravo"); in TEST()
420 strcpy(entries[2].name, "alpha"); in TEST()
422 qsort(entries, 3, sizeof(s), s::comparator); in TEST()
423 ASSERT_STREQ("alpha", entries[0].name); in TEST()
424 ASSERT_STREQ("bravo", entries[1].name); in TEST()
425 ASSERT_STREQ("charlie", entries[2].name); in TEST()
427 qsort(entries, 3, sizeof(s), s::comparator); in TEST()
428 ASSERT_STREQ("alpha", entries[0].name); in TEST()
[all …]
Dsearch_test.cpp297 std::vector<char*> entries; in TEST() local
305 entries.push_back(p); in TEST()
309 for (auto& p : entries) { in TEST()
314 for (auto& p : entries) free(p); in TEST()
/bionic/tests/libs/
Dbionic_tests_zipalign.cpp42 static bool GetEntries(ZipArchiveHandle handle, std::vector<ZipData>* entries) { in GetEntries() argument
53 entries->emplace_back(std::make_pair(std::make_unique<ZipEntry>(entry), name)); in GetEntries()
59 std::sort(entries->begin(), entries->end(), in GetEntries()
68 std::vector<ZipData> entries; in CreateAlignedZip() local
71 if (!GetEntries(handle, &entries)) { in CreateAlignedZip()
78 for (auto& entry : entries) { in CreateAlignedZip()
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dhsearch_r.c49 ENTRY *entry = &hsearch->entries[index & hsearch->index_mask]; in hsearch_lookup_free()
90 entry = &hsearch->entries[index & hsearch->index_mask]; in hsearch_r()
108 old_entries = hsearch->entries; in hsearch_r()
120 hsearch->entries = new_entries; in hsearch_r()
Dhcreate_r.c48 hsearch->entries = calloc(16, sizeof(ENTRY)); in hcreate_r()
49 if (hsearch->entries == NULL) { in hcreate_r()
Dhsearch.h37 ENTRY *entries; /* Hash table entries. */ member
Dhdestroy_r.c41 free(hsearch->entries); in hdestroy_r()
/bionic/libc/kernel/uapi/linux/netfilter/
Dx_tables.h96 #define XT_ENTRY_ITERATE_CONTINUE(type,entries,size,n,fn,args...) \ argument
97 …__i < (size); __i += __entry->next_offset, __n ++) { __entry = (void *) (entries) + __i; if(__n < …
99 #define XT_ENTRY_ITERATE(type,entries,size,fn,args...) XT_ENTRY_ITERATE_CONTINUE(type, entries, siz… argument
/bionic/libc/private/
Dbionic_fdsan.h47 FdEntry entries[0]; member
57 FdEntry entries[inline_fds]; member
/bionic/libc/kernel/uapi/linux/netfilter_arp/
Darp_tables.h37 #define ARPT_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct arpt_entry, entries, si… argument
102 struct arpt_entry entries[]; member
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
Debtables.h48 char * entries; member
58 char * entries; member
152 #define EBT_ENTRY_ITERATE(entries,size,fn,args...) \ argument
153 …t ebt_entry * __entry; for(__i = 0; __i < (size);) { __entry = (void *) (entries) + __i; __ret = f…
/bionic/libc/kernel/uapi/linux/netfilter_ipv4/
Dip_tables.h54 #define IPT_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ipt_entry, entries, size… argument
116 struct ipt_entry entries[]; member
/bionic/libc/kernel/uapi/linux/netfilter_ipv6/
Dip6_tables.h54 #define IP6T_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ip6t_entry, entries, si… argument
136 struct ip6t_entry entries[]; member
/bionic/libc/kernel/uapi/linux/
Dnet_dropmon.h38 __u32 entries; member
42 __u32 entries; member
Dxdp_diag.h61 __u32 entries; member
Dkd.h71 struct unipair * entries; member
Dvirtio_net.h157 __virtio32 entries; member
/bionic/libc/malloc_debug/
DREADME_api.md20 *backtrace\_size* is set to the maximum number of backtrace entries
45 of backtrace entries is less than *backtrace\_size*, the rest of the
46 entries are zero.
/bionic/linker/
Dlinker_note_gnu_property_test.cpp114 ++entries; in push()
137 dump_member("entries ", entries); in dump()
138 if (entries > 0) { in dump()
176 size_t entries = 0; member in GnuPropertySectionBuilder
/bionic/libc/kernel/uapi/rdma/
Dmana-abi.h60 struct rss_resp_entry entries[64]; member
/bionic/libc/kernel/uapi/asm-x86/asm/
Dkvm.h174 struct kvm_msr_entry entries[]; member
209 struct kvm_cpuid_entry entries[]; member
227 struct kvm_cpuid_entry2 entries[]; member
/bionic/libc/bionic/
Dfdsan.cpp59 return &entries[idx]; in at()
107 return &local_overflow->entries[offset]; in at()

12