From 5ddeba7af3b3c7fb633d9c9167e49678f9da8b53 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 28 Sep 2023 07:40:35 +0200 Subject: [PATCH] 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). --- src/stream.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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", -- 2.47.3