Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 2 of 2) sorted by relevance

/examples/utest/testcases/kernel/
A Dmem_tc.c50 mem != heap->heap_end; in max_block()
86 struct rt_small_mem *heap; in mem_functional_test() local
97 total_size = max_block(heap); in mem_functional_test()
106 ctx.size = max_block(heap); in mem_functional_test()
241 max_free = max_block(heap); in mem_functional_test()
277 rt_smem_detach(&heap->parent); in mem_functional_test()
306 struct rt_small_mem *heap; in mem_alloc_test() local
321 total_size = max_block(heap); in mem_alloc_test()
413 rt_smem_detach(&heap->parent); in mem_alloc_test()
441 struct rt_small_mem *heap; in mem_realloc_test() local
[all …]
A Dslab_tc.c51 rt_slab_t heap; in slab_alloc_test() local
65 heap = rt_slab_init("slab_tc", buf, TEST_SLAB_SIZE); in slab_alloc_test()
79 ctx = rt_slab_alloc(heap, size); in slab_alloc_test()
99 rt_slab_free(heap, ctx); in slab_alloc_test()
133 rt_slab_free(heap, ctx); in slab_alloc_test()
150 rt_slab_free(heap, ctx); in slab_alloc_test()
155 rt_slab_detach(heap); in slab_alloc_test()
183 rt_slab_t heap; in slab_realloc_test() local
203 head.ctx_tab = rt_slab_alloc(heap, size); in slab_realloc_test()
299 rt_slab_realloc(heap, ctx, 0); in slab_realloc_test()
[all …]

Completed in 5 milliseconds