From 78811afb47d80ea395ac07bca54a45915961aca9 Mon Sep 17 00:00:00 2001 From: Nivin Lawrence Date: Wed, 4 Dec 2024 09:15:23 -0800 Subject: [PATCH] Thrift support for ECC and fifo overflow errors Summary: Add support for fifo overflow and ECC errors. Reviewed By: maxwindiff Differential Revision: D66566146 fbshipit-source-id: 7dd4999e4893553c8a5066cbc96fbe7f67119258 --- fboss/agent/hw/hardware_stats.thrift | 2 ++ fboss/fsdb/if/oss/fsdb_model_thriftpath.h | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/fboss/agent/hw/hardware_stats.thrift b/fboss/agent/hw/hardware_stats.thrift index 8a4e81db1e5df..065670030d416 100644 --- a/fboss/agent/hw/hardware_stats.thrift +++ b/fboss/agent/hw/hardware_stats.thrift @@ -231,6 +231,8 @@ struct HwAsicErrors { 9: optional i64 forwardingQueueProcessorErrors; 10: optional i64 allReassemblyContextsTaken; 11: optional i64 reassemblyErrors; + 12: optional i64 eccErrors; + 13: optional i64 fifoOverflowErrors; } struct HwTeFlowStats { diff --git a/fboss/fsdb/if/oss/fsdb_model_thriftpath.h b/fboss/fsdb/if/oss/fsdb_model_thriftpath.h index 06885afac9ce2..9fdfe9d939ed5 100755 --- a/fboss/fsdb/if/oss/fsdb_model_thriftpath.h +++ b/fboss/fsdb/if/oss/fsdb_model_thriftpath.h @@ -23128,7 +23128,9 @@ std::pair>, std::pair>, std::pair>, -std::pair>>; +std::pair>, +std::pair>, +std::pair>>; using ChildrenById = fatal::tuple< std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, @@ -23139,7 +23141,9 @@ std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, - std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>>; + std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, + std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>, + std::pair, Child<::std::int64_t, ::apache::thrift::type_class::integral, ::apache::thrift::type::i64_t>>>; template using NameToId = fatal::tuple>, std::pair>, @@ -23151,7 +23155,9 @@ std::pair>, std::pair>, std::pair>, -std::pair>>::template type_of; +std::pair>, +std::pair>, +std::pair>>::template type_of; template using TypeFor = typename Children::template type_of; @@ -23168,6 +23174,8 @@ std::pair auto operator()(const std::integral_constant&) { @@ -23182,6 +23190,8 @@ std::pair