This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: any tools? (for finding the memory leaks)
- From: Alex Schuilenburg <alexs at ecoscentric dot com>
- To: prashanthu baragur <prashu dot list at gmail dot com>
- Cc: Andrew Lunn <andrew at lunn dot ch>, ecos-discuss at sources dot redhat dot com
- Date: Mon, 01 Aug 2005 15:36:40 +0100
- Subject: Re: [ECOS] any tools? (for finding the memory leaks)
- References: <a921dcdc0507312240205e1541@mail.gmail.com> <20050801095622.GK11102@lunn.ch>
Andrew Lunn wrote:
> On Mon, Aug 01, 2005 at 11:10:53AM +0530, prashanthu baragur wrote:
>
>>Hi,
>>
>> In eCos, any memory leak finding tools available, just like
>>ElectricFence?
>
>
>>I want to use some memory debugging tools to see or evaluate any
>>memory related issues, of my application implementation.
>
>
> ElectricFence makes extensive use of the MMU to detect access out of
> memory bounds etc. eCos is designed to run without the MMU. So this
> approach is not possible.
>
> If you are just looking for memory leaks you can put a wrapper around
> malloc/free to print out the addresses. Or you could extend the malloc
> implementation to store the __builtin_return_address() for each
> allocation and then dump out the allocations sometime later.
The problem with this approach is the amount of data you have to store
and then match up if you suffer from memory leaks over time.
<Commercial>
eCosCentric have developed a Memory Debug Data tool as part of eCosPro.
This provides a comprehensive mechanism for tracking memory leaks as
well as memory usage and overflow issues. These features are documented at:
http://www.ecoscentric.com/ecospro/doc/html/ref/memalloc-debugdata.html
http://www.ecoscentric.com/ecospro/doc/html/ref/memalloc-standard-api.html#MEMALLOC-STANDARD-API-DEBUG
If you are interested in purchasing eCosPro, contact
info@ecoscentric.com for details.
</Commercial>
-- Alex
Managing Director / CEO eCosCentric Limited
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss