From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2017 03:21:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,421,1508828400"; d="scan'208";a="187962759" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.252.5.162]) ([10.252.5.162]) by fmsmga006.fm.intel.com with ESMTP; 18 Dec 2017 03:21:36 -0800 To: dev@dpdk.org References: <477552f3.52bb.1605fc01ca2.Coremail.liupan1234@163.com> From: "Burakov, Anatoly" Message-ID: <87362cb7-23c9-f8d4-bc61-3407f6eeb1c6@intel.com> Date: Mon, 18 Dec 2017 11:21:35 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <477552f3.52bb.1605fc01ca2.Coremail.liupan1234@163.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] how to iterator all malloc_elem of a malloc_heap X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 11:21:38 -0000 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