From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: how to iterator all malloc_elem of a malloc_heap Date: Mon, 18 Dec 2017 11:21:35 +0000 Message-ID: <87362cb7-23c9-f8d4-bc61-3407f6eeb1c6@intel.com> References: <477552f3.52bb.1605fc01ca2.Coremail.liupan1234@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit To: dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8DEC823D for ; Mon, 18 Dec 2017 12:21:37 +0100 (CET) In-Reply-To: <477552f3.52bb.1605fc01ca2.Coremail.liupan1234@163.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "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