diff --git a/include/haproxy/tinfo-t.h b/include/haproxy/tinfo-t.h index 5dce74383..f061a6e79 100644 --- a/include/haproxy/tinfo-t.h +++ b/include/haproxy/tinfo-t.h @@ -83,6 +83,7 @@ enum thread_exec_ctx_type { TH_EX_CTX_CALLER, /* the pointer is an ha_caller of the caller providing file:line etc */ TH_EX_CTX_SMPF, /* directly registered sample fetch function, using .smpf_kwl */ TH_EX_CTX_CONV, /* directly registered converter function, using .conv_kwl */ + TH_EX_CTX_FUNC, /* hopefully recognizable function/callback, using .pointer */ }; struct thread_exec_ctx { diff --git a/src/tools.c b/src/tools.c index 10a9badca..58fa78013 100644 --- a/src/tools.c +++ b/src/tools.c @@ -7535,6 +7535,10 @@ void chunk_append_thread_ctx(struct buffer *output, const struct thread_exec_ctx case TH_EX_CTX_CONV: chunk_appendf(output,"conv kwl starting with '%s'", ctx->conv_kwl->kw[0].kw); break; + case TH_EX_CTX_FUNC: + resolve_sym_name(output, "func '", ctx->pointer); + chunk_appendf(output,"'"); + break; default: chunk_appendf(output,"other ctx %p", ctx->pointer); break;