Home
last modified time | relevance | path

Searched refs:total (Results 1 – 15 of 15) sorted by relevance

/bionic/libc/dns/net/
Dgetservent.c43 int total = 0; in getservent_r() local
55 total += namelen + 1; in getservent_r()
60 total += (count+1)*sizeof(char*); in getservent_r()
63 total += 1 + len2; in getservent_r()
68 p2 = realloc( (char*)rs->servent.s_aliases, total ); in getservent_r()
/bionic/libc/dns/resolv/
Dres_stats.c130 int total = successes + errors + timeouts; in _res_stats_usable_server() local
134 total, rtt_avg, params->min_samples); in _res_stats_usable_server()
136 if (total >= params->min_samples && (errors > 0 || timeouts > 0)) { in _res_stats_usable_server()
137 int success_rate = successes * 100 / total; in _res_stats_usable_server()
/bionic/tests/
Dmalloc_iterate_test.cpp201 size_t total = test_data.total_allocated_bytes; in TEST() local
203 total = test_data.total_allocated_bytes - total; in TEST()
204 if (total > 0) { in TEST()
209 total); in TEST()
213 start, end, total); in TEST()
/bionic/libc/malloc_debug/
DREADME_api.md14 *overall\_size* is set to the total size of the buffer returned. If this
17 *total\_memory* is set to the sum of all allocation sizes that are live at
41 *num\_allocations* contains the total number of allocations with the same
44 Each *uintptr\_t* is a pc of the callstack. If the total number
53 The total number of these structures returned in *info* is
Dmalloc_debug.cpp998 size_t total = 1; in debug_malloc_info() local
1002 total++; in debug_malloc_info()
1005 MallocXmlElem(fd, "total").Contents("%zu", total); in debug_malloc_info()
DREADME.md282 If ALLOCATION\_COUNT is present, it indicates the total number of allocations
358 If TOTAL\_ENTRIES is set, then it indicates the total number of
558 Total memory is the total of all of the currently live allocations.
559 Allocation records is the total number of allocation records.
/bionic/libc/bionic/
Dmalloc_limit.cpp98 uint64_t total; in CheckLimit() local
100 atomic_load_explicit(&gAllocated, memory_order_relaxed), bytes, &total) || in CheckLimit()
101 total > gAllocLimit)) { in CheckLimit()
116 size_t total; in LimitCalloc() local
117 if (__builtin_mul_overflow(n_elements, elem_size, &total) || !CheckLimit(total)) { in LimitCalloc()
Djemalloc_wrapper.cpp188 size_t total = 0; in je_malloc_info() local
196 total += mi.ordblks; in je_malloc_info()
199 MallocXmlElem(fd, "bins-total").Contents("%zu", total); in je_malloc_info()
Dfortify.cpp102 unsigned long total; in __fread_chk() local
103 if (__predict_false(__builtin_umull_overflow(size, count, &total))) { in __fread_chk()
107 __check_buffer_access("fread", "write into", total, buf_size); in __fread_chk()
112 unsigned long total; in __fwrite_chk() local
113 if (__predict_false(__builtin_umull_overflow(size, count, &total))) { in __fwrite_chk()
117 __check_buffer_access("fwrite", "read from", total, buf_size); in __fwrite_chk()
/bionic/libc/async_safe/
Dasync_safe_log.cpp80 BufferOutputStream(char* buffer, size_t size) : total(0), pos_(buffer), avail_(size) { in BufferOutputStream()
89 total += len; in Send()
105 size_t total; member
114 explicit FdOutputStream(int fd) : total(0), fd_(fd) {} in FdOutputStream()
120 total += len; in Send()
132 size_t total; member
458 return os.total; in async_safe_format_buffer_va_list()
472 return os.total; in async_safe_format_fd_va_list()
/bionic/libc/stdio/
Dstdio.cpp1098 size_t total = desired_total; in fread_unlocked() local
1099 if (total == 0) return 0; in fread_unlocked()
1111 while (total > 0) { in fread_unlocked()
1113 size_t buffered_bytes = MIN(static_cast<size_t>(fp->_r), total); in fread_unlocked()
1118 total -= buffered_bytes; in fread_unlocked()
1121 if (total == 0) goto out; in fread_unlocked()
1124 if (total > static_cast<size_t>(fp->_bf._size)) break; in fread_unlocked()
1131 while (total > 0) { in fread_unlocked()
1133 int chunk_size = MIN(total, INT_MAX); in fread_unlocked()
1140 total -= bytes_read; in fread_unlocked()
[all …]
/bionic/libc/kernel/uapi/linux/
Domapfb.h157 __u32 total; member
/bionic/docs/
Dnative_allocator.md131 another is total RSS taken by the allocator.
220 For these benchmarks, the last parameter is the total number of allocations to
375 trace (~13 million operations). The total number of live allocations goes
D32-bit-abi.md107 but 32-bit bionic's `pthread_mutex` is a total of 32 bits, leaving just
/bionic/libc/kernel/uapi/drm/
Ddrm.h201 int total; member