From 7f9ebd2c5f1d14edfd921c40760ee157c7241a5d Mon Sep 17 00:00:00 2001 From: aviramd Date: Thu, 22 Aug 2024 12:51:42 +0000 Subject: [PATCH 1/2] add support for debug generate dump tables --- common/consumer_table_pops.lua | 4 +++- common/schema.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/consumer_table_pops.lua b/common/consumer_table_pops.lua index 959bcd0fa..5e4cafd9f 100644 --- a/common/consumer_table_pops.lua +++ b/common/consumer_table_pops.lua @@ -90,7 +90,9 @@ for i = n, 1, -3 do op == 'object_type_get_availability_query' or op == 'object_type_get_availability_response' or op == 'stats_capability_query' or - op == 'stats_capability_response' then + op == 'stats_capability_response' or + op == 'dbg_gen_dump' or + op == 'dbg_gen_dumpresponse' then -- do not modify db entries when spotted those commands, they are used to -- trigger actions or get data synchronously from database diff --git a/common/schema.h b/common/schema.h index 4007967ae..c15a93653 100644 --- a/common/schema.h +++ b/common/schema.h @@ -509,6 +509,9 @@ namespace swss { #define STATE_TWAMP_SESSION_TABLE_NAME "TWAMP_SESSION_TABLE" +#define STATE_DBG_GEN_DUMP_TABLE_NAME "DBG_GEN_DUMP_TABLE" +#define STATE_DBG_GEN_DUMP_STATS_TABLE_NAME "DBG_GEN_DUMP_STATS_TABLE" + #define STATE_MACSEC_PORT_TABLE_NAME "MACSEC_PORT_TABLE" #define STATE_MACSEC_INGRESS_SC_TABLE_NAME "MACSEC_INGRESS_SC_TABLE" #define STATE_MACSEC_INGRESS_SA_TABLE_NAME "MACSEC_INGRESS_SA_TABLE" From 2165fde0b3507626c53b01828e297577a26e9223 Mon Sep 17 00:00:00 2001 From: aviramd Date: Wed, 30 Oct 2024 14:28:55 +0000 Subject: [PATCH 2/2] change gen debug dump tables names to applDb Signed-off-by: aviramd --- common/schema.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/schema.h b/common/schema.h index c15a93653..7a75aef33 100644 --- a/common/schema.h +++ b/common/schema.h @@ -184,6 +184,9 @@ namespace swss { #define APP_PFC_PRIORITY_TO_PRIORITY_GROUP_MAP_NAME "PFC_PRIORITY_TO_PRIORITY_GROUP_MAP_TABLE" #define APP_PFC_PRIORITY_TO_QUEUE_MAP_NAME "MAP_PFC_PRIORITY_TO_QUEUE" +#define APP_DBG_GEN_DUMP_TABLE_NAME "DBG_GEN_DUMP_TABLE" +#define APP_DBG_GEN_DUMP_STATUS_TABLE_NAME "DBG_GEN_DUMP_STATUS_TABLE" + /***** COUNTER DATABASE *****/ #define COUNTERS_PORT_NAME_MAP "COUNTERS_PORT_NAME_MAP" @@ -509,9 +512,6 @@ namespace swss { #define STATE_TWAMP_SESSION_TABLE_NAME "TWAMP_SESSION_TABLE" -#define STATE_DBG_GEN_DUMP_TABLE_NAME "DBG_GEN_DUMP_TABLE" -#define STATE_DBG_GEN_DUMP_STATS_TABLE_NAME "DBG_GEN_DUMP_STATS_TABLE" - #define STATE_MACSEC_PORT_TABLE_NAME "MACSEC_PORT_TABLE" #define STATE_MACSEC_INGRESS_SC_TABLE_NAME "MACSEC_INGRESS_SC_TABLE" #define STATE_MACSEC_INGRESS_SA_TABLE_NAME "MACSEC_INGRESS_SA_TABLE"