https://github.com/evincarofautumn/stack-log
Generates a log of the stack at all points in a program.
https://github.com/evincarofautumn/stack-log
Last synced: 3 months ago
JSON representation
Generates a log of the stack at all points in a program.
- Host: GitHub
- URL: https://github.com/evincarofautumn/stack-log
- Owner: evincarofautumn
- Created: 2014-11-14T23:40:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T22:54:37.000Z (almost 11 years ago)
- Last Synced: 2025-06-25T18:05:37.945Z (4 months ago)
- Language: C
- Size: 230 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Generates a log of the stack at all points in a program.
`make` builds a library (`libstacklog.a`) and an executable (`stack-log`).
Compile your program with `-finstrument-functions` and link with `-lstacklog`. When you run your program, a binary file named `stack.log` will be written. Run `stack-log` to render this file as text. Each line contains the timestamp (microseconds since the Unix epoch), whether the transfer was a function `entry` or `exit`, the address that the program just left, and the address at which the program just arrived. These addresses can be given to `addr2line` to extract function names.