log-malloc 2006-10-26 review

Download
by rbytes.net on

log-malloc is a simple malloc/free logger

License: BSD License
File size: 4K
Developer: Kefeer
0 stars award from rbytes.net

log-malloc is a simple malloc/free logger. It is very small and has no dependencies. No configuration is necessary.

log-malloc project logs parameters, return values, and the call stack. There is no need to rebuild the application that will be logged.

Build: gcc -nostartfiles –shared -fPIC -g -ldl -o log-malloc.so log-malloc.c

Usage: LD_PRELOAD=./log-malloc.so command args …

If you want redirect output to file run:

LD_PRELOAD=./log-malloc.so command args … 200>filename

You could use addr2line tool from GNU binutils to convert 0x addresses into source code line numbers.

log-malloc 2006-10-26 search tags