mirror_frr/tests/lib/cli
David Lamparter 0bdeb5e58d lib: rewrite zlog lock-free & TLS-buffered
This is a full rewrite of the "back end" logging code.  It now uses a
lock-free list to iterate over logging targets, and the targets
themselves are as lock-free as possible.  (syslog() may have a hidden
internal mutex in the C library;  the file/fd targets use a single
write() call which should ensure atomicity kernel-side.)

Note that some functionality is lost in this patch:
- Solaris printstack() backtraces are ditched (unlikely to come back)
- the `log-filter` machinery is gone (re-added in followup commit)
- `terminal monitor` is temporarily stubbed out.  The old code had a
  race condition with VTYs going away.  It'll likely come back rewritten
  and with vtysh support.
- The `zebra_ext_log` hook is gone.  Instead, it's now much easier to
  add a "proper" logging target.

v2: TLS buffer to get some actual performance

Signed-off-by: David Lamparter <equinox@diac24.net>
2020-04-01 06:53:26 +02:00
..
.gitignore *: track version & "defaults" in configs 2017-03-28 19:18:42 +02:00
common_cli.c lib: rewrite zlog lock-free & TLS-buffered 2020-04-01 06:53:26 +02:00
common_cli.h *: reindent 2017-07-17 14:04:07 +02:00
test_cli.c build: non-recursive tests 2018-09-08 21:26:54 +02:00
test_cli.in tests: reorganize tests hierarchically 2017-02-13 16:54:48 +01:00
test_cli.py tests: properly locate files in builddir 2018-09-08 21:30:19 +02:00
test_cli.refout.in tests: fix domainname dependency 2018-12-07 19:34:45 +01:00
test_commands.c *: fix ctype (isalpha & co.) casts 2019-08-06 16:54:52 +02:00
test_commands.in tests: reorganize tests hierarchically 2017-02-13 16:54:48 +01:00
test_commands.py tests: fix & run ZeroMQ test 2017-08-28 18:00:13 +02:00
test_commands.refout tests: reorganize tests hierarchically 2017-02-13 16:54:48 +01:00