DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] how to iterator all malloc_elem of a malloc_heap
@ 2017-12-16 14:35 liupan1234
  2017-12-18 11:21 ` Burakov, Anatoly
  0 siblings, 1 reply; 2+ messages in thread
From: liupan1234 @ 2017-12-16 14:35 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] how to iterator all malloc_elem of a malloc_heap
  2017-12-16 14:35 [dpdk-dev] how to iterator all malloc_elem of a malloc_heap liupan1234
@ 2017-12-18 11:21 ` Burakov, Anatoly
  0 siblings, 0 replies; 2+ messages in thread
From: Burakov, Anatoly @ 2017-12-18 11:21 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-18 11:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-16 14:35 [dpdk-dev] how to iterator all malloc_elem of a malloc_heap liupan1234
2017-12-18 11:21 ` Burakov, Anatoly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).