LCOV - code coverage report
Current view: top level - adump/common/platform - dc_platform.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 8 8
Test Date: 2026-08-31 10:09:28 Functions: 100.0 % 4 4

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : #include "dc_platform.h"
      11              : 
      12              : #include "adump_platform_registry.h"
      13              : 
      14              : namespace Adx {
      15              : 
      16              : ADUMP_PLATFORM_REGISTER(FeaturesSupportInterface, PlatformType::CHIP_DC_TYPE, DcFeatures);
      17              : ADUMP_PLATFORM_REGISTER(ExceptionDumpInterface, PlatformType::CHIP_DC_TYPE, DcException);
      18              : ADUMP_PLATFORM_REGISTER(DataDumpInterface, PlatformType::CHIP_DC_TYPE, DcDataDump);
      19              : 
      20            3 : DcFeatures::DcFeatures()
      21              : {
      22              :     supported_ = {
      23              :         AdumpPlatformFeature::FEATURE_DATA_DUMP,
      24              :         AdumpPlatformFeature::FEATURE_OVERFLOW_DUMP,
      25              :         AdumpPlatformFeature::FEATURE_EXCEPTION_DUMP_L0,
      26              :         AdumpPlatformFeature::FEATURE_EXCEPTION_DUMP_L1,
      27            3 :     };
      28            3 : }
      29              : 
      30            3 : bool DcException::IsArgsDataTypeSizeByByte() const { return true; }
      31              : 
      32            6 : uint64_t DcDataDump::GetKfcStackSize() const
      33              : {
      34              :     // DC(310p) not support kfc again
      35            6 :     return 0;
      36              : }
      37              : 
      38            3 : std::vector<std::string> DcDataDump::GetKfcBinNames() const
      39              : {
      40              :     // DC(310p) not support kfc again
      41            3 :     return {};
      42              : }
      43              : 
      44              : } // namespace Adx
        

Generated by: LCOV version 2.0-1