[dpdk-dev] how to iterator all malloc_elem of a malloc_heap
Burakov, Anatoly
anatoly.burakov at intel.com
Mon Dec 18 12:21:35 CET 2017
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 heap, it there any way to get used list? I want to get it to do some statistic.
>
>
> Thanks
> Pan
>
Hi Pan,
There isn't a way to do that at the moment.
--
Thanks,
Anatoly
More information about the dev
mailing list