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-07-28 12:11:00 Functions: 88.2 % 17 15

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

Generated by: LCOV version 2.0-1