From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4ADC477E.3000503@domain.hid> Date: Mon, 19 Oct 2009 13:03:26 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <20091019092051.2502.31525.stgit@domain.hid> <20091019092052.2502.1090.stgit@domain.hid> <4ADC3164.8070207@domain.hid> In-Reply-To: <4ADC3164.8070207@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [PATCH 1/2] nucleus: Add semaphore heap statistics List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: "xenomai@xenomai.org" Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> This extends /proc/xenomai/heap with statistics about the global as well >> as all per-process semaphore heaps. This is helpful to track down the >> reason for ENOMEM (system or sem heap full?) and to find out that we >> are leaking memory from the global heap on automatic native mutex, >> queue, and heap deletion. > > I'd rather see the xnholder_t in the xnheap structure. This way, we > would be able to add all heaps to /proc/xenomai/heaps. > Makes sense, will rework this. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux