This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: any tools? (for finding the memory leaks)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]