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 % 11 11
Test Date: 2026-07-28 10:54:24 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            3 :     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
      31              : {
      32            3 :     return true;
      33              : }
      34              : 
      35            6 : uint64_t DcDataDump::GetKfcStackSize() const
      36              : {
      37            6 :     constexpr uint32_t OP_STACK_310P = 2;
      38            6 :     return CalcKfcStackSize(OP_STACK_310P);
      39              : }
      40              : 
      41            3 : std::string DcDataDump::GetKfcBinName() const
      42              : {
      43            6 :     return "kfc_dump_stat_ascend310p3.o";
      44              : }
      45              : 
      46              : } // namespace Adx
        

Generated by: LCOV version 2.0-1