acl-plugin: an elog-based tracing implementation for troubleshooting the conn cleaner... 13/10413/5
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 5 Feb 2018 16:27:57 +0000 (17:27 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 8 Feb 2018 10:01:09 +0000 (10:01 +0000)
commit1c6e5cf6905b2bd951982da9b712b13e2cb21295
tree33e8624eb919a2e72e2ce8ea8bfe8e80906c17e8
parentacbde664374303027e261ac096647592ca929f03
acl-plugin: an elog-based tracing implementation for troubleshooting the conn cleaner threads interactions

This replaces some of the early-stage commented-out printf()s with
an elog-based debug collector.

It is aimed to be "better than nothing" initial implementation to be available
in the field. It will be refined/updated based on use. This initial code
is focused on the main/worker threads interactions, hence uses just
the worker tracks.

This code adds a developer debug CLI "set acl-plugin session table event-trace 1",
which allows to gather the events pertaining to connection cleaning.
The CLI is deliberately not part of the online help, as the express
declaration that the semantics/trace levels, etc. are subject to change
without notice.

Change-Id: I3536309f737b73e50639cd5780822dcde667fc2c
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c
src/plugins/acl/acl.h
src/plugins/acl/fa_node.c
src/plugins/acl/fa_node.h
test/test_acl_plugin_conns.py