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

Generated by: LCOV version 2.0-1