From 1c6e5cf6905b2bd951982da9b712b13e2cb21295 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Mon, 5 Feb 2018 17:27:57 +0100 Subject: 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 --- src/plugins/acl/acl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/acl/acl.h') diff --git a/src/plugins/acl/acl.h b/src/plugins/acl/acl.h index d38c12990de..41e216f089b 100644 --- a/src/plugins/acl/acl.h +++ b/src/plugins/acl/acl.h @@ -225,6 +225,8 @@ typedef struct { uword fa_conn_table_hash_memory_size; u64 fa_conn_table_max_entries; + int trace_sessions; + /* * If the cleaner has to delete more than this number * of connections, it halves the sleep time. -- cgit 1.2.3-korg