debug: add "ringbuf" backend logging to a ringbuffer
authorRalph Boehme <slow@samba.org>
Sat, 7 Jan 2017 13:36:24 +0000 (14:36 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 20 Jan 2017 17:48:25 +0000 (18:48 +0100)
commit1f6d5f2c090ee6bb6e0215b8cfa365eb96453917
tree419e53040c4b4a0d91bc5c5c94fa5ff27d66f317
parentbf59d97f80a7894672a46a312259cc4118576637
debug: add "ringbuf" backend logging to a ringbuffer

This is useful for debugging bugs that involve timing effects and are
not reproducible when logging at higher debug levels with the file
backend.

The log can be dumped to a file with gdb:

(gdb) dump binary memory samba.log debug_ringbuf debug_ringbuf+SIZE

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
docs-xml/smbdotconf/logging/logging.xml
lib/util/debug.c
lib/util/debug.h