Lines Matching +full:avg +full:- +full:count
4 * SPDX-License-Identifier: Apache-2.0
30 /* Various ARC platforms set CONFIG_SRAM_SIZE to 16-128M, but have a
31 * much lower limit of (32-64k) in their linker scripts. Pick a
95 ((size_t *)p)[sz / sizeof(size_t) - 1] = tok; in fill_block()
112 zassert_true(((size_t *)p)[sz / sizeof(size_t) - 1] == tok, ""); in check_fill()
128 size_t chunk = ROUND_DOWN(addr - 1, 8); in testalloc()
129 size_t hdr = addr - chunk; in testalloc()
130 size_t expect = ROUND_UP(bytes + hdr, 8) - hdr; in testalloc()
151 uint32_t tot = r->total_allocs + r->total_frees; in log_result()
152 uint32_t avg = (uint32_t)((r->accumulated_in_use_bytes + tot/2) / tot); in log_result() local
153 uint32_t avg_pct = (uint32_t)((100ULL * avg + sz / 2) / sz); in log_result()
154 uint32_t succ_pct = ((100ULL * r->successful_allocs + r->total_allocs / 2) in log_result()
155 / r->total_allocs); in log_result()
158 " avg usage: %d/%d (%d%%)\n", in log_result()
159 r->successful_allocs, r->total_allocs, succ_pct, in log_result()
160 r->total_frees, avg, (int) sz, avg_pct); in log_result()
193 * receive a 8 byte minimal chunk, we still count that as 5 bytes of
216 * exhaustively with good performance, so the relative operation count
249 * - h: chunk0 header
250 * - b: buckets in chunk0
251 * - c: chunk header for the first allocation
252 * - 1: chunk mem
253 * - s: solo free header
254 * - f: end marker / footer
313 "Realloc should have expanded in place %p -> %p", in ZTEST()
339 "Realloc should have shrunk in place %p -> %p", in ZTEST()
354 "Realloc should have expanded in place %p -> %p", in ZTEST()
358 /* Corner case with sys_heap_aligned_realloc() on 32-bit targets in ZTEST()
382 "Realloc should have expanded in place %p -> %p", in ZTEST()