MINOR: debug: let ha_dump_backtrace() dump a bit further for some callers
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Jan 2021 13:48:34 +0000 (14:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Jan 2021 13:48:34 +0000 (14:48 +0100)
commit2bfce7e424db23392302b925670b8486af925a9f
treec94ec0a33709795626d3fa4e8f08cf299970642c
parent5baf4fe31ad2a5b1e0402c0a6d580dda203a2dab
MINOR: debug: let ha_dump_backtrace() dump a bit further for some callers

The dump state is now passed to the function so that the caller can adjust
the behavior. A new series of 4 values allow to stop *after* dumping main
instead of before it or any of the usual loops. This allows to also report
BUG_ON() that could happen very high in the call graph (e.g. startup, or
the scheduler itself) while still understanding what the call path was.
include/haproxy/debug.h
src/debug.c