LCOV - code coverage report
Current view: top level - legacy/ascend950/framework/communicator/aicpu - kfc.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 3 3
Test Date: 2026-08-17 10:19:35 Functions: 90.0 % 20 18

            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              : #ifndef HCCLV2_KFC_H
      11              : #define HCCLV2_KFC_H
      12              : 
      13              : #include "enum_factory_legacy.h"
      14              : #include "error_message_v2.h"
      15              : 
      16              : namespace Hccl {
      17        19940 : MAKE_ENUM(KfcCommand, NONE, NS_STOP_LAUNCH, NS_CLEAN, DESTROY_AICPU_COMM)
      18      4660825 : MAKE_ENUM(KfcStatus, NONE, STOP_LAUNCH_DONE, CLEAN_DONE, DESTROY_AICPU_COMM_DONE, ERROR)
      19           23 : MAKE_ENUM(KfcErrType, NONE, TIMEOUT, EXEC)
      20              : 
      21              : #pragma pack(push)
      22              : #pragma pack(1)
      23              : // aicpu向host提供的状态查询
      24              : struct KfcExecStatus {
      25              :     KfcStatus kfcStatus; // KFC状态
      26              :     KfcErrType kfcError; // KFC错误码
      27              :     ErrorMessageReport errorMessageReport;
      28              : };
      29              : #pragma pack(pop)
      30              : } // namespace Hccl
      31              : #endif
        

Generated by: LCOV version 2.0-1