/Zephyr-latest/tests/drivers/mm/sys_mm_drv_bank/src/ |
D | main.c | 20 zassert_equal(stats->free_bytes, expected->free_bytes, in test_stats() 22 stats->free_bytes, expected->free_bytes); in test_stats() 42 expected.free_bytes = EXPECTED(0); in ZTEST() 54 expected.free_bytes = EXPECTED(BANK_PAGES); in ZTEST() 72 expected.free_bytes = EXPECTED(BANK_PAGES - 2); in ZTEST() 84 expected.free_bytes = EXPECTED(BANK_PAGES - 1); in ZTEST() 96 expected.free_bytes = EXPECTED(BANK_PAGES - 2); in ZTEST() 106 expected.free_bytes = EXPECTED(BANK_PAGES - 3); in ZTEST() 118 expected.free_bytes = EXPECTED(BANK_PAGES - 2); in ZTEST() 125 expected.free_bytes = EXPECTED(BANK_PAGES - 2); in ZTEST()
|
/Zephyr-latest/tests/lib/mem_blocks_stats/src/ |
D | main.c | 58 zassert_equal(stats.free_bytes, BLK_SZ * NUM_BLOCKS, in ZTEST() 60 BLK_SZ * NUM_BLOCKS, stats.free_bytes); in ZTEST() 76 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 3), in ZTEST() 78 BLK_SZ * (NUM_BLOCKS - 3), stats.free_bytes); in ZTEST() 94 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 1), in ZTEST() 96 BLK_SZ * (NUM_BLOCKS - 1), stats.free_bytes); in ZTEST() 112 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 2), in ZTEST() 114 BLK_SZ * (NUM_BLOCKS - 2), stats.free_bytes); in ZTEST() 131 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 2), in ZTEST() 133 BLK_SZ * (NUM_BLOCKS - 2), stats.free_bytes); in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/mem_slab/mslab_stats/src/ |
D | main.c | 54 zassert_equal(stats.free_bytes, BLK_SZ * NUM_BLOCKS, in ZTEST() 56 BLK_SZ * NUM_BLOCKS, stats.free_bytes); in ZTEST() 78 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 3), in ZTEST() 80 BLK_SZ * (NUM_BLOCKS - 3), stats.free_bytes); in ZTEST() 96 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 1), in ZTEST() 98 BLK_SZ * (NUM_BLOCKS - 1), stats.free_bytes); in ZTEST() 114 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 2), in ZTEST() 116 BLK_SZ * (NUM_BLOCKS - 2), stats.free_bytes); in ZTEST() 133 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 2), in ZTEST() 135 BLK_SZ * (NUM_BLOCKS - 2), stats.free_bytes); in ZTEST() [all …]
|
/Zephyr-latest/lib/heap/ |
D | heap_info.c | 17 size_t free_bytes, allocated_bytes, total, overhead; in heap_print_info() local 63 get_alloc_info(h, &allocated_bytes, &free_bytes); in heap_print_info() 66 overhead = total - free_bytes - allocated_bytes; in heap_print_info() 68 free_bytes, allocated_bytes, overhead, in heap_print_info()
|
D | heap_stats.c | 18 stats->free_bytes = heap->heap->free_bytes; in sys_heap_runtime_stats_get()
|
D | heap_validate.c | 95 size_t allocated_bytes, free_bytes; in sys_heap_validate() local 98 get_alloc_info(h, &allocated_bytes, &free_bytes); in sys_heap_validate() 101 (stat.free_bytes != free_bytes)) { in sys_heap_validate()
|
D | heap.h | 73 size_t free_bytes; member 266 size_t *free_bytes) in get_alloc_info() argument 271 *free_bytes = 0; in get_alloc_info() 277 *free_bytes += chunksz_to_bytes(h, chunk_size(h, c)); in get_alloc_info()
|
D | heap.c | 56 h->free_bytes -= chunksz_to_bytes(h, chunk_size(h, c)); in free_list_remove_bidx() 94 h->free_bytes += chunksz_to_bytes(h, chunk_size(h, c)); in free_list_add_bidx() 515 h->free_bytes = 0; in sys_heap_init()
|
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/ |
D | main.c | 442 zassert_equal(query.free_bytes, expected->free_bytes, in test_mem_block_query() 444 str, expected->free_bytes, query.free_bytes); in test_mem_block_query() 465 .free_bytes = 128, in ZTEST() 490 query.free_bytes -= 32; in ZTEST() 505 query.free_bytes -= 32; in ZTEST() 519 query.free_bytes += 32; in ZTEST() 601 zassert_equal(query.free_bytes, expected->free_bytes, in test_mem_slab_query() 603 str, expected->free_bytes, query.free_bytes); in test_mem_slab_query() 622 .free_bytes = 128, in ZTEST() 649 query.free_bytes -= 32; in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | mem_stats.h | 25 size_t free_bytes; member
|
/Zephyr-latest/samples/basic/sys_heap/src/ |
D | main.c | 44 stats.allocated_bytes, stats.free_bytes, in print_sys_memory_stats()
|
/Zephyr-latest/subsys/shell/modules/kernel_service/ |
D | heap.c | 29 shell_print(sh, "free: %zu", stats.free_bytes); in cmd_kernel_heap()
|
/Zephyr-latest/drivers/mm/ |
D | mm_drv_bank.c | 48 stats->free_bytes = bank->unmapped_pages * in sys_mm_drv_bank_stats_get()
|
/Zephyr-latest/kernel/ |
D | mem_slab.c | 51 ptr->free_bytes = (slab->info.num_blocks - slab->info.num_used) * in k_mem_slab_stats_query() 311 stats->free_bytes = (slab->info.num_blocks - slab->info.num_used) * in k_mem_slab_runtime_stats_get()
|
/Zephyr-latest/modules/lvgl/ |
D | lvgl.c | 211 (stats.allocated_bytes * 100) / (stats.allocated_bytes + stats.free_bytes); in lv_mem_monitor_core()
|
/Zephyr-latest/lib/mem_blocks/ |
D | mem_blocks.c | 439 stats->free_bytes = (mem_block->info.num_blocks << in sys_mem_blocks_runtime_stats_get() 487 ptr->free_bytes = (block->info.num_blocks - block->info.used_blocks) << in sys_mem_blocks_stats_query()
|