diff options
author | Dave Barach <dave@barachs.net> | 2019-07-15 16:00:03 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-07-16 13:12:12 +0000 |
commit | b09f4d0adb8364b3516c3a64e8238715887ffec8 (patch) | |
tree | 95f9f29d3d5a9c17fcff3cd670623cc16ff2806b /src/vat/vat.h | |
parent | 7b8a30d08bffcb8c6fe7faa8d7f7dc557e175770 (diff) |
api: enable binary API event logging in vat
Cleaned up a few instances of side-bet elog_string hash table
usage. Elog_string handles that problem itself.
Add cli commands to vat to initialize, enable/disable, and save an
event log.
Event logging at the same time in both vpp and vat yields a pair
of event logs which can be merged by the "test_elog" tool.
Type: refactor
Change-Id: I8d6a72206f2309c967ea1630077fba31aef47f93
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vat/vat.h')
-rw-r--r-- | src/vat/vat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vat/vat.h b/src/vat/vat.h index c71446519a3..0d93af7b0f2 100644 --- a/src/vat/vat.h +++ b/src/vat/vat.h @@ -24,6 +24,7 @@ #include <vppinfra/clib.h> #include <vppinfra/format.h> #include <vppinfra/error.h> +#include <vppinfra/elog.h> #include <vppinfra/time.h> #include <vppinfra/macros.h> #include <vppinfra/socket.h> @@ -215,6 +216,10 @@ typedef struct socket_client_main_t *socket_client_main; u8 *socket_name; +#if VPP_API_TEST_BUILTIN == 0 + elog_main_t elog_main; +#endif + /* Convenience */ vlib_main_t *vlib_main; } vat_main_t; |