DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: dev@dpdk.org
Subject: Re: [dpdk-dev] how to iterator all malloc_elem of a malloc_heap
Date: Mon, 18 Dec 2017 11:21:35 +0000	[thread overview]
Message-ID: <87362cb7-23c9-f8d4-bc61-3407f6eeb1c6@intel.com> (raw)
In-Reply-To: <477552f3.52bb.1605fc01ca2.Coremail.liupan1234@163.com>

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

      reply	other threads:[~2017-12-18 11:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-16 14:35 liupan1234
2017-12-18 11:21 ` Burakov, Anatoly [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87362cb7-23c9-f8d4-bc61-3407f6eeb1c6@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).