Study from open source code -- malloc trace (1)

来源:互联网 发布:centos nginx安装目录 编辑:程序博客网 时间:2024/04/30 15:22

for working on fsck the disk mounted on board, i read the the code of the e2fsck, study some useful skills, such like this:

 

malloc_trace.

 

we malloc or free the memory in programes, some skills will be useful for us to debug

 

if want get more information, please 'man malloc_hook'

 

a example follw: