From: Willy Tarreau Date: Thu, 28 Sep 2023 05:40:35 +0000 (+0200) Subject: MINOR: stream: make strm_dump_to_buffer() show the list of filters X-Git-Tag: v2.9-dev7~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ddeba7af3b3c7fb633d9c9167e49678f9da8b53;p=thirdparty%2Fhaproxy.git MINOR: stream: make strm_dump_to_buffer() show the list of filters That's one of the rare pieces of information that was not present in the full dump and only in the short one, the list of filters the stream is subscribed to (however the current filter was present and more detailed). --- diff --git a/src/stream.c b/src/stream.c index a13ebe4297..35759037c0 100644 --- a/src/stream.c +++ b/src/stream.c @@ -3472,6 +3472,18 @@ static void strm_dump_to_buffer(struct buffer *buf, const struct stream *strm, u tmpctx->t->nice, tmpctx->t->calls, read_freq_ctr(&tmpctx->call_rate)); } + if (HAS_FILTERS(strm)) { + const struct filter *flt; + + chunk_appendf(buf, " filters={"); + list_for_each_entry(flt, &strm->strm_flt.filters, list) { + if (flt->list.p != &strm->strm_flt.filters) + chunk_appendf(buf, ", "); + chunk_appendf(buf, "%p=\"%s\"", flt, FLT_ID(flt)); + } + chunk_appendf(buf, "}\n"); + } + chunk_appendf(buf, " req=%p (f=0x%06x an=0x%x pipe=%d tofwd=%d total=%lld)\n" " an_exp=%s buf=%p data=%p o=%u p=%u i=%u size=%u\n",