text: /* 
   * 
   * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
   * 
   * Copyright 2007-2020 Broadcom Inc. All rights reserved.
   * 
   * DO NOT EDIT THIS FILE!
   * This file is auto-generated.
   * Edits to this file will be lost when it is regenerated.
   */
  
  #include <sal/core/libc.h>
  #include <shared/swstate/sw_state.h>
  #include <shared/error.h>
  #include <shared/swstate/sw_state_defs.h>
  #include <shared/bsl.h>
  #include <shared/swstate/sw_state_dump.h>
  #include <shared/swstate/diagnostic/sw_state_diagnostic.h>
  #include <shared/swstate/diagnostic/sw_state_dpp_bcm_bfd_diagnostic.h>
  
  #ifdef BCM_WARM_BOOT_API_TEST
  #ifdef _ERR_MSG_MODULE_NAME
      #error "_ERR_MSG_MODULE_NAME redefined"
  #endif
  
  #define _ERR_MSG_MODULE_NAME BSL_LS_SHARED_SWSTATE
  
  extern shr_sw_state_t *sw_state[BCM_MAX_NUM_UNITS];
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_dump(int unit){
      SW_STATE_INIT_FUNC_DEFS;
      {
          uint32 j0, J0;
          sw_state_get_nof_elements(unit, sw_state[unit]->dpp.bcm.bfd, sizeof(*sw_state[unit]->dpp.bcm.bfd), &j0 ,&J0);
          for (; j0 < J0; j0++) {
              shr_sw_state_dump_update_current_idx(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.YourDiscriminator_ref_count.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.s_hop.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.trap_info.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.mpls_udp_sport_ref_counter.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd._bcm_bfd_endpoint_list.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.ipv4_udp_sport_ref_counter.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.ipv4_multi_hop_acc_ref_counter.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.pdu_ref_counter.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.mpls_tp_cc_ref_counter.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.tx_rate_value.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.tx_rate_ref_counter.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.no_of_sbfd_endpoints.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.reflector_trap_id.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.reflector_status.dump(unit, j0);
              sw_state_diagnostic[unit].dpp.bcm.bfd.no_of_sbfd_reflector.dump(unit, j0);
          }
          shr_sw_state_dump_end_of_stride(unit);
      }
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_YourDiscriminator_ref_count_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->YourDiscriminator_ref_count,
          "sw_state[%d]->dpp.bcm.bfd->YourDiscriminator_ref_count: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_s_hop_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      sw_state_diagnostic[unit].dpp.bcm.bfd.s_hop.ref_counter.dump(unit, bfd_idx_0);
      sw_state_diagnostic[unit].dpp.bcm.bfd.s_hop.tos_value.dump(unit, bfd_idx_0);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_s_hop_ref_counter_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->s_hop.ref_counter,
          "sw_state[%d]->dpp.bcm.bfd->s_hop.ref_counter: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_s_hop_tos_value_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->s_hop.tos_value,
          "sw_state[%d]->dpp.bcm.bfd->s_hop.tos_value: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_trap_info_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      sw_state_diagnostic[unit].dpp.bcm.bfd.trap_info.trap_ids.dump(unit, bfd_idx_0);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_trap_info_trap_ids_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      {
          int i0;
          i0 = shr_sw_state_dump_check_all_the_same(unit, sw_state[unit]->dpp.bcm.bfd->trap_info.trap_ids
              , sizeof(*sw_state[unit]->dpp.bcm.bfd->trap_info.trap_ids), SOC_PPC_BFD_TRAP_ID_COUNT) ? SOC_PPC_BFD_TRAP_ID_COUNT - 1 : 0;
          for (; i0 < SOC_PPC_BFD_TRAP_ID_COUNT; i0++) {
              shr_sw_state_dump_update_current_idx(unit, i0);
              SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->trap_info.trap_ids[i0],
                  "sw_state[%d]->dpp.bcm.bfd->trap_info.trap_ids[%d]: ", unit, i0);
          }
          shr_sw_state_dump_end_of_stride(unit);
      }
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_mpls_udp_sport_ref_counter_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->mpls_udp_sport_ref_counter,
          "sw_state[%d]->dpp.bcm.bfd->mpls_udp_sport_ref_counter: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd__bcm_bfd_endpoint_list_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->_bcm_bfd_endpoint_list,
          "sw_state[%d]->dpp.bcm.bfd->_bcm_bfd_endpoint_list: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_ipv4_udp_sport_ref_counter_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->ipv4_udp_sport_ref_counter,
          "sw_state[%d]->dpp.bcm.bfd->ipv4_udp_sport_ref_counter: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_ipv4_multi_hop_acc_ref_counter_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->ipv4_multi_hop_acc_ref_counter,
          "sw_state[%d]->dpp.bcm.bfd->ipv4_multi_hop_acc_ref_counter: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_pdu_ref_counter_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->pdu_ref_counter,
          "sw_state[%d]->dpp.bcm.bfd->pdu_ref_counter: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_mpls_tp_cc_ref_counter_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->mpls_tp_cc_ref_counter,
          "sw_state[%d]->dpp.bcm.bfd->mpls_tp_cc_ref_counter: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_tx_rate_value_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      {
          int i0;
          i0 = shr_sw_state_dump_check_all_the_same(unit, sw_state[unit]->dpp.bcm.bfd->tx_rate_value
              , sizeof(*sw_state[unit]->dpp.bcm.bfd->tx_rate_value), 8) ? 8 - 1 : 0;
          for (; i0 < 8; i0++) {
              shr_sw_state_dump_update_current_idx(unit, i0);
              SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->tx_rate_value[i0],
                  "sw_state[%d]->dpp.bcm.bfd->tx_rate_value[%d]: ", unit, i0);
          }
          shr_sw_state_dump_end_of_stride(unit);
      }
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_tx_rate_ref_counter_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      {
          int i0;
          i0 = shr_sw_state_dump_check_all_the_same(unit, sw_state[unit]->dpp.bcm.bfd->tx_rate_ref_counter
              , sizeof(*sw_state[unit]->dpp.bcm.bfd->tx_rate_ref_counter), 8) ? 8 - 1 : 0;
          for (; i0 < 8; i0++) {
              shr_sw_state_dump_update_current_idx(unit, i0);
              SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->tx_rate_ref_counter[i0],
                  "sw_state[%d]->dpp.bcm.bfd->tx_rate_ref_counter[%d]: ", unit, i0);
          }
          shr_sw_state_dump_end_of_stride(unit);
      }
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_no_of_sbfd_endpoints_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->no_of_sbfd_endpoints,
          "sw_state[%d]->dpp.bcm.bfd->no_of_sbfd_endpoints: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_reflector_trap_id_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->reflector_trap_id,
          "sw_state[%d]->dpp.bcm.bfd->reflector_trap_id: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_reflector_status_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->reflector_status,
          "sw_state[%d]->dpp.bcm.bfd->reflector_status: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
  /* AUTO-GENERATED - DO NOT MODIFY */
  int sw_state_dpp_bcm_bfd_no_of_sbfd_reflector_dump(int unit, int bfd_idx_0){
      SW_STATE_INIT_FUNC_DEFS;
      SW_STATE_PRINT_OPAQUE(unit, sw_state[unit]->dpp.bcm.bfd->no_of_sbfd_reflector,
          "sw_state[%d]->dpp.bcm.bfd->no_of_sbfd_reflector: ", unit);
      SW_STATE_FUNC_RETURN;
  }
  
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  
  
  int
  sw_state_dpp_bcm_bfd_diagnostic_cb_init(int unit){
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.dump = sw_state_dpp_bcm_bfd_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.YourDiscriminator_ref_count.dump = sw_state_dpp_bcm_bfd_YourDiscriminator_ref_count_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.s_hop.dump = sw_state_dpp_bcm_bfd_s_hop_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.s_hop.ref_counter.dump = sw_state_dpp_bcm_bfd_s_hop_ref_counter_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.s_hop.tos_value.dump = sw_state_dpp_bcm_bfd_s_hop_tos_value_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.trap_info.dump = sw_state_dpp_bcm_bfd_trap_info_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.trap_info.trap_ids.dump = sw_state_dpp_bcm_bfd_trap_info_trap_ids_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.mpls_udp_sport_ref_counter.dump = sw_state_dpp_bcm_bfd_mpls_udp_sport_ref_counter_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd._bcm_bfd_endpoint_list.dump = sw_state_dpp_bcm_bfd__bcm_bfd_endpoint_list_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.ipv4_udp_sport_ref_counter.dump = sw_state_dpp_bcm_bfd_ipv4_udp_sport_ref_counter_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.ipv4_multi_hop_acc_ref_counter.dump = sw_state_dpp_bcm_bfd_ipv4_multi_hop_acc_ref_counter_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.pdu_ref_counter.dump = sw_state_dpp_bcm_bfd_pdu_ref_counter_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.mpls_tp_cc_ref_counter.dump = sw_state_dpp_bcm_bfd_mpls_tp_cc_ref_counter_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.tx_rate_value.dump = sw_state_dpp_bcm_bfd_tx_rate_value_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.tx_rate_ref_counter.dump = sw_state_dpp_bcm_bfd_tx_rate_ref_counter_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.no_of_sbfd_endpoints.dump = sw_state_dpp_bcm_bfd_no_of_sbfd_endpoints_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.reflector_trap_id.dump = sw_state_dpp_bcm_bfd_reflector_trap_id_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.reflector_status.dump = sw_state_dpp_bcm_bfd_reflector_status_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
  #ifdef BCM_PETRA_SUPPORT
  #if defined(BCM_PETRA_SUPPORT)
      sw_state_diagnostic[unit].dpp.bcm.bfd.no_of_sbfd_reflector.dump = sw_state_dpp_bcm_bfd_no_of_sbfd_reflector_dump;
  #endif /* defined(BCM_PETRA_SUPPORT)*/ 
  #endif /* BCM_PETRA_SUPPORT*/ 
      return _SHR_E_NONE;
  }
  
  #undef _ERR_MSG_MODULE_NAME
  #endif /* BCM_WARM_BOOT_API_TEST */
  