Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1018 Bytes

memtracker.md

File metadata and controls

17 lines (13 loc) · 1018 Bytes

memtracker.so

This tool tracks memory allocations, memory accesses and function entry/exit points for C programs and the associated libraries. It prints out a trace of allocation and access records.

The tool has some nice features enabling it to work with real production code.

  • It does not require changes to the source code of your program.
  • It can track any memory allocation function or macro (not just malloc). You specify the prototype of your memory allocation functions in a configuration file.
  • It works for multithreaded programs.
  • It tracks source location of memory accesses (for binaries with debug information) and the names of the accessed variables (for variables allocated on the heap via the tracked allocation functions you identified).

HOW TO USE THE TOOL:

  1. Building
  2. Configuring
  3. Running
  4. Memtracker Traces
  5. Eclipse set up instructions