22 #include <evfibers_private/trace.h>
23 #include <evfibers_private/fiber.h>
25 void fill_trace_info(
FBR_P_ struct trace_info *info)
27 if (0 == fctx->__p->backtraces_enabled)
29 info->size = backtrace(info->array, TRACE_SIZE);
36 if (0 == fctx->__p->backtraces_enabled) {
37 (*log)(
FBR_A_ "(No backtrace since they are disabled)");
40 strings = backtrace_symbols(info->array, info->size);
41 for (i = 0; i < info->size; i++)
42 (*log)(
FBR_A_ "%s", strings[i]);