custom memory manager..
- From: shiva <nikhilbhargav_nsit@xxxxxxxxxxxxx>
- Date: Wed, 16 Apr 2008 22:12:22 -0700 (PDT)
Hello,
I am developing a user level memory manager for a protocol stack. It
will replace the usual malloc() by something like my_malloc() and free
by my_free(). The basic idea is to minimize the chances of memory non-
avaliabiltiy, minimize system calls at run time thereby minimizing
risk for failure, and use the memeory in an effcient way.
The problem is i donot want to change the prototype of my_malloc which
is currently same as malloc() but I also want to associate debug
information along wth every buffer allocated.
For example, if function f1() from task T1 calls my_malloc(), then I
want to associate things like
1. task_id,
2. regiser counetrs,
3. stack trace or any other relevant debug info that would help me
debug any memory crash.
Can any one suggest how can I do it? I mean which system call will hel
me and whatother info (other then the one i have mentioned) can be
used?
.
- Follow-Ups:
- Re: custom memory manager..
- From: Bernhard Agthe
- Re: custom memory manager..
- Prev by Date: Re: Which way is the best choice to co-exist Windows and Linux ?
- Next by Date: Trigger function on shared module init
- Previous by thread: Keyboard remapping beyond Xmodmap and Xbd?
- Next by thread: Re: custom memory manager..
- Index(es):
Relevant Pages
|