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

liupan1234 liupan1234 at 163.com
Sat Dec 16 15:35:13 CET 2017

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 want to get it to do some statistic.


More information about the dev mailing list