[fnrec] Add function recorder for debugging
commit6a6f26f74da733862832d5ea79e2776d84d0a78d
authorStefan Hajnoczi <stefanha@gmail.com>
Fri, 5 Feb 2010 22:15:18 +0000 (5 22:15 +0000)
committerMarty Connor <mdc@etherboot.org>
Thu, 4 Mar 2010 16:38:29 +0000 (4 11:38 -0500)
tree93da82d748796c8b821af7bec42847358ef16289
parent5782794e20f15f0f31207d9bc6f1350842532048
[fnrec] Add function recorder for debugging

The function recorder is a crash and hang debugging tool.  It logs each
function call into a memory buffer while gPXE runs.  After the machine
is reset, and if the contents of memory have not been overwritten, gPXE
will detect the memory buffer and print out its contents.

This allows developers to see a trace of the last functions called
before a crash or hang.  The util/fnrec.sh script can be used to convert
the function addresses back into symbol names.

To build with fnrec:

    make FNREC=1

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Marty Connor <mdc@etherboot.org>
src/Makefile.housekeeping
src/core/fnrec.c [new file with mode: 0644]
src/util/fnrec.sh [new file with mode: 0755]