[PATCH] record: Add wrappers for malloc() functions

Chris Johns chrisj at rtems.org
Sun Sep 1 02:29:56 UTC 2019


On 30/8/19 11:07 pm, Sebastian Huber wrote:
> Introduce new library librtemsrecordwrap.a which contains wrappers for
> operating system functions which produce entry/exit events.

Why not enhance the trace linker to handle the recorder you have developed? It
has been able to wrap malloc and friends for a while now, it is just lacking
support for your recent tracing effort.

Currently the trace linker does not uses the DWARF information to determine the
function signature as the DWARF support was added to the tool kit after it was
created and it has not been updated. The idea is to have DWARF provide the
signature of any suitable function so it can be wrapped.

I do not see any upside adding this library or wrapping specific functions this way.

Chris



More information about the devel mailing list