LCOV - code coverage report
Current view: top level - aicpu_schedule/common/ts_to_aicpu_msg_adapter - ts_aicpu_sqe_adapter.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 1 1
Test Date: 2026-07-28 10:54:05 Functions: 100.0 % 2 2

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2026 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 TS_AICPU_SQE_ADAPTER_H
      11              : #define TS_AICPU_SQE_ADAPTER_H
      12              : #include "ts_msg_adapter.h"
      13              : namespace AicpuSchedule {
      14              : class TsAicpuSqeAdapter final : public TsMsgAdapter {
      15              : public:
      16              :     TsAicpuSqeAdapter(const TsAicpuSqeAdapter&) = delete;
      17              :     TsAicpuSqeAdapter(TsAicpuSqeAdapter&&) = delete;
      18              :     TsAicpuSqeAdapter& operator=(const TsAicpuSqeAdapter&) = delete;
      19              :     TsAicpuSqeAdapter& operator=(TsAicpuSqeAdapter&&) = delete;
      20           25 :     ~TsAicpuSqeAdapter() override = default;
      21              :     TsAicpuSqeAdapter(const TsAicpuSqe& sqe);
      22              :     TsAicpuSqeAdapter();
      23              : 
      24              :     // invalid parameter
      25              :     bool IsAdapterInvaildParameter() const override;
      26              : 
      27              :     // dump
      28              :     void GetAicpuDataDumpInfo(AicpuDataDumpInfo& info) override;
      29              :     void GetAicpuDumpFFTSPlusDataInfo(AicpuDumpFFTSPlusDataInfo& info);
      30              :     bool IsOpMappingDumpTaskInfoVaild(const AicpuOpMappingDumpTaskInfo& info) const override;
      31              :     void GetAicpuDumpTaskInfo(AicpuOpMappingDumpTaskInfo& opmappingInfo, AicpuDumpTaskInfo& dumpTaskInfo) override;
      32              :     void GetAicpuDataDumpInfoLoad(AicpuDataDumpInfoLoad& info) override;
      33              :     int32_t AicpuDumpResponseToTs(const int32_t result) override;
      34              :     int32_t AicpuDataDumpLoadResponseToTs(const int32_t result) override;
      35              : 
      36              :     // model operator
      37              :     void GetAicpuModelOperateInfo(AicpuModelOperateInfo& info) override;
      38              :     int32_t AicpuModelOperateResponseToTs(const int32_t result, const uint32_t subEvent) override;
      39              :     void AicpuActiveStreamSetMsg(ActiveStreamInfo& info) override;
      40              : 
      41              :     // version set
      42              :     void GetAicpuMsgVersionInfo(AicpuMsgVersionInfo& info) override;
      43              :     int32_t AicpuMsgVersionResponseToTs(const int32_t result) override;
      44              : 
      45              :     // task report
      46              :     void GetAicpuTaskReportInfo(AicpuTaskReportInfo& info) override;
      47              :     int32_t ErrorMsgResponseToTs(ErrMsgRspInfo& rspInfo) override;
      48              : 
      49              :     // pid notice
      50              :     int32_t AicpuNoticeTsPidResponse(const uint32_t deviceId) const override;
      51              : 
      52              :     // timeout
      53              :     void GetAicpuTimeOutConfigInfo(AicpuTimeOutConfigInfo& info) override;
      54              :     int32_t AicpuTimeOutConfigResponseToTs(const int32_t result) override;
      55              : 
      56              :     // info load
      57              :     void GetAicpuInfoLoad(AicpuInfoLoad& info) override;
      58              :     int32_t AicpuInfoLoadResponseToTs(const int32_t result) override;
      59              : 
      60              :     // err report
      61              :     void GetAicErrReportInfo(AicErrReportInfo& info) override;
      62              : 
      63              :     // record
      64              :     int32_t AicpuRecordResponseToTs(AicpuRecordInfo& info) override;
      65              : private:
      66              :     TsAicpuSqe aicpuSqe_;
      67              :     bool invalidSqe_;
      68              : };
      69              : } // namespace AicpuSchedule
      70              : #endif // TS_AICPU_SQE_ADAPTER_H
        

Generated by: LCOV version 2.0-1