From 03ed85a6c065896c9377db173745c511ea40bdcb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 22 Jun 2018 10:38:53 -0400 Subject: lib, zebra: Add a bit of code to look at fifo When in a dev build add a bit of code to track max depth of a fifo and to allow zebra to report on it. Signed-off-by: Donald Sharp --- lib/stream.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/stream.h') diff --git a/lib/stream.h b/lib/stream.h index e5d325e43e..11af85c663 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -115,6 +115,9 @@ struct stream_fifo { /* number of streams in this fifo */ _Atomic size_t count; +#if defined DEV_BUILD + _Atomic size_t max_count; +#endif struct stream *head; struct stream *tail; -- cgit v1.2.3