Re: [dpdk-dev] how to iterator all malloc_elem of a malloc_heap

2017-12-18 Thread Burakov, Anatoly
On 16-Dec-17 2:35 PM, liupan1234 wrote: Hi All, struct malloc_heap { rte_spinlock_t lock; LIST_HEAD(, malloc_elem) free_head[RTE_HEAP_NUM_FREELISTS]; unsigned alloc_count; size_t total_size; } __rte_cache_aligned; I found there are free list of one malloc h

[dpdk-dev] how to iterator all malloc_elem of a malloc_heap

2017-12-16 Thread liupan1234
Hi All, struct malloc_heap { rte_spinlock_t lock; LIST_HEAD(, malloc_elem) free_head[RTE_HEAP_NUM_FREELISTS]; unsigned alloc_count; size_t total_size; } __rte_cache_aligned; I found there are free list of one malloc heap, it there any way to get used list? I wan