Skip to content
Composable high-level instrumentation for C libraries' malloc and friends
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.hgignore
Makerules
README
alloc_events.h
event_hooks.c
hook_protos.h
linker_glue.c
malloc_hook_stubs_glibc.c
malloc_hook_stubs_preload.c
malloc_hook_stubs_wrap.c
malloc_hook_stubs_wrapdl.c
malloc_hooks_preload.c
malloc_protos.h
noop_hooks.c
wrappers.h

README

libmallochooks

This contains some include files and make rules that will let you build
a customised malloc instrumentation  library out of some high-level hook
definitions.

For now it supports glibc's (deprecated) malloc hooks, a generic
load-time LD_PRELOAD approach and a generic compile/link-time wrapper
approach.

There's no documentation as yet, but you can see an example of their use
in liballocs <https://github.com/stephenrkell/liballocs/>: look at
malloc_hook_stubs_*.o rules in src/Makefile, and at heap_index_hooks.c.

Stephen
You can’t perform that action at this time.