agentzh / wrapalloc

Wrapping up the glibc allocation and free API functions via LD_PRELOAD to ease dynamic tracing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name

wrapalloc - Wraps up glibc's memory allocation and freeing API functions to ease dynamic tracing

Synopsis

LD_PRELOAD=/path/to/wrapalloc/wrapalloc.so your_app

Description

The glibc binaries shipped with most mainstream Linux distributions usually suffer from the incorrect debuginfo generated by gcc under very aggressive optimizaton flags.

This LD_PRELOAD library wraps up the common glibc API functions for memory allocations and de-allocations so that dynamic tracing tools like those based on systemtap can work reliably.

Building

$ make

Author

Yichun Zhang (agentzh) agentzh@gmail.com

About

Wrapping up the glibc allocation and free API functions via LD_PRELOAD to ease dynamic tracing


Languages

Language:C 94.8%Language:Makefile 5.2%