backtrace: Add log_backtrace()
authorAndy Zhou <azhou@nicira.com>
Thu, 13 Mar 2014 22:28:54 +0000 (15:28 -0700)
committerAndy Zhou <azhou@nicira.com>
Tue, 18 Mar 2014 05:51:17 +0000 (22:51 -0700)
commitd0b99d38edaba6e744a5787b990e7b989684e179
tree8e348b289062079e5ab380bd665ee3053f4204fd
parent4c9dbc0b14865eede43bae743058d25be8c191fb
backtrace: Add log_backtrace()

log_backtrace() and log_backtrace_msg() logs the back trace into
the log file. It may be most useful when debugging unit tests.
"backtrace.h" documents the usage. It is not being called directly
in the code, but rather as a handy tool available when needed.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/backtrace.c
lib/backtrace.h