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/tests/
Dmalloc_iterate_test.cpp198 size_t total = test_data.total_allocated_bytes; in TEST() local
200 total = test_data.total_allocated_bytes - total; in TEST()
201 if (total > 0) { in TEST()
206 total); in TEST()
210 start, end, total); in TEST()
/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/libc/async_safe/
Dasync_safe_log.cpp71 BufferOutputStream(char* buffer, size_t size) : total(0), pos_(buffer), avail_(size) { in BufferOutputStream()
80 total += len; in Send()
96 size_t total; member
105 explicit FdOutputStream(int fd) : total(0), fd_(fd) {} in FdOutputStream()
111 total += len; in Send()
123 size_t total; member
416 return os.total; in async_safe_format_buffer_va_list()
430 return os.total; in async_safe_format_fd_va_list()
/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.cpp851 size_t total = 1; in debug_malloc_info() local
855 total++; in debug_malloc_info()
858 MallocXmlElem(fd, "total").Contents("%zu", total); in debug_malloc_info()
DREADME.md210 If ALLOCATION\_COUNT is present, it indicates the total number of allocations
276 If TOTAL\_ENTRIES is set, then it indicates the total number of
476 Total memory is the total of all of the currently live allocations.
477 Allocation records is the total number of allocation records.
/bionic/libc/bionic/
Dmalloc_limit.cpp97 uint64_t total; in CheckLimit() local
99 atomic_load_explicit(&gAllocated, memory_order_relaxed), bytes, &total) || in CheckLimit()
100 total > gAllocLimit)) { in CheckLimit()
115 size_t total; in LimitCalloc() local
116 if (__builtin_mul_overflow(n_elements, elem_size, &total) || !CheckLimit(total)) { in LimitCalloc()
Djemalloc_wrapper.cpp157 size_t total = 0; in je_malloc_info() local
165 total += mi.ordblks; in je_malloc_info()
168 MallocXmlElem(fd, "bins-total").Contents("%zu", total); in je_malloc_info()
Dfortify.cpp105 size_t total; in __fread_chk() local
106 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fread_chk()
110 __check_buffer_access("fread", "write into", total, buf_size); in __fread_chk()
115 size_t total; in __fwrite_chk() local
116 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fwrite_chk()
120 __check_buffer_access("fwrite", "read from", total, buf_size); in __fwrite_chk()
/bionic/libc/stdio/
Dstdio.cpp1103 size_t total = desired_total; in fread_unlocked() local
1104 if (total == 0) return 0; in fread_unlocked()
1116 while (total > 0) { in fread_unlocked()
1118 size_t buffered_bytes = MIN(static_cast<size_t>(fp->_r), total); in fread_unlocked()
1123 total -= buffered_bytes; in fread_unlocked()
1126 if (total == 0) goto out; in fread_unlocked()
1129 if (total > static_cast<size_t>(fp->_bf._size)) break; in fread_unlocked()
1136 while (total > 0) { in fread_unlocked()
1137 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total); in fread_unlocked()
1143 total -= bytes_read; in fread_unlocked()
[all …]
/bionic/libc/kernel/uapi/linux/
Domapfb.h169 __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.h213 int total; member