Add entry and exit logging to all core functions.

I.e. mallloc, free, the allocx API, the posix extensions.
This commit is contained in:
David T. Goldblatt
2017-07-19 18:05:28 -07:00
committed by David Goldblatt
parent 9761b449c8
commit e215a7bc18
2 changed files with 204 additions and 1 deletions

View File

@@ -30,6 +30,12 @@
* You can then log by writing:
* log(log_var, "format string -- my int is %d", my_int);
*
* The namespaces currently in use:
* core.[malloc|free|posix_memalign|...].[entry|exit]:
* The entry/exit points of the functions publicly exposed by jemalloc.
* The "entry" variants try to log arguments to the functions, and the
* "exit" ones try to log return values.
*
* None of this should be regarded as a stable API for right now. It's intended
* as a debugging interface, to let us keep around some of our printf-debugging
* statements.