LCOV - code coverage report
Current view: top level - stub - stub_tsd_event_client.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 28 28
Test Date: 2026-08-31 10:07:09 Functions: 100.0 % 15 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              : #include "tsd.h"
      11              : 
      12            1 : int32_t SendUpdateProfilingRspToTsd(
      13              :     const uint32_t deviceId, const uint32_t waitType, const uint32_t hostPid, const uint32_t vfId)
      14              : {
      15              :     (void)deviceId;
      16              :     (void)waitType;
      17              :     (void)hostPid;
      18              :     (void)vfId;
      19            1 :     return 0;
      20              : }
      21              : 
      22            1 : int32_t CreateOrFindCustPid(
      23              :     const uint32_t deviceId, const uint32_t loadLibNum, const char* const loadLibName[], const uint32_t hostPid,
      24              :     const uint32_t vfId, const char* const groupNameList, const uint32_t groupNameNum, int32_t* const custProcPid,
      25              :     bool* const firstStart)
      26              : {
      27              :     (void)deviceId;
      28              :     (void)loadLibNum;
      29              :     (void)loadLibName;
      30              :     (void)hostPid;
      31              :     (void)vfId;
      32              :     (void)groupNameList;
      33              :     (void)groupNameNum;
      34              :     (void)custProcPid;
      35              :     (void)firstStart;
      36            1 :     return 0;
      37              : }
      38              : 
      39            1 : int32_t SetSubProcScheduleMode(
      40              :     const uint32_t deviceId, const uint32_t waitType, const uint32_t hostPid, const uint32_t vfId,
      41              :     const struct SubProcScheduleModeInfo* scheInfo)
      42              : {
      43              :     (void)deviceId;
      44              :     (void)waitType;
      45              :     (void)hostPid;
      46              :     (void)vfId;
      47              :     (void)scheInfo;
      48            1 :     return 0;
      49              : }
      50              : 
      51            1 : int32_t ReportMsgToTsd(
      52              :     const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId,
      53              :     const char* const msgInfo)
      54              : {
      55              :     (void)deviceId;
      56              :     (void)waitType;
      57              :     (void)hostPid;
      58              :     (void)vfId;
      59              :     (void)msgInfo;
      60            1 :     return 0;
      61              : }
      62              : 
      63            1 : int32_t RegEventMsgCallBackFunc(const struct SubProcEventCallBackInfo* regInfo)
      64              : {
      65              :     (void)regInfo;
      66            1 :     return 0;
      67              : }
      68              : 
      69            1 : void UnRegEventMsgCallBackFunc(const uint32_t eventType) { (void)eventType; }
      70              : 
      71            1 : int32_t TsdReportStartOrStopErrCode(
      72              :     const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId,
      73              :     const char* errCode, const uint32_t errLen)
      74              : {
      75              :     (void)deviceId;
      76              :     (void)waitType;
      77              :     (void)hostPid;
      78              :     (void)vfId;
      79              :     (void)errCode;
      80              :     (void)errLen;
      81            1 :     return 0;
      82              : }
      83              : 
      84            1 : int32_t StartupResponse(
      85              :     const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
      86              : {
      87              :     (void)deviceId;
      88              :     (void)waitType;
      89              :     (void)hostPid;
      90              :     (void)vfId;
      91            1 :     return 0;
      92              : }
      93              : 
      94            1 : int32_t WaitForShutDown(const uint32_t deviceId)
      95              : {
      96              :     (void)deviceId;
      97            1 :     return 0;
      98              : }
      99              : 
     100            1 : int32_t TsdDestroy(const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
     101              : {
     102              :     (void)deviceId;
     103              :     (void)waitType;
     104              :     (void)hostPid;
     105              :     (void)vfId;
     106            1 :     return 0;
     107              : }
     108              : 
     109            1 : int32_t StopWaitForCustAicpu() { return 0; }
     110              : 
     111            1 : int32_t SubModuleProcessResponse(
     112              :     const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId,
     113              :     const uint32_t eventType)
     114              : {
     115              :     (void)deviceId;
     116              :     (void)waitType;
     117              :     (void)hostPid;
     118              :     (void)vfId;
     119              :     (void)eventType;
     120            1 :     return 0;
     121              : }
     122              : 
     123            1 : int32_t StartUpRspAndWaitProcess(
     124              :     const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
     125              : {
     126              :     (void)deviceId;
     127              :     (void)waitType;
     128              :     (void)hostPid;
     129              :     (void)vfId;
     130            1 :     return 0;
     131              : }
     132              : 
     133            1 : int32_t SetDstTsdEventPid(const uint32_t dstPid)
     134              : {
     135              :     (void)dstPid;
     136            1 :     return 0;
     137              : }
     138              : 
     139            1 : int32_t TsdWaitForShutdown(
     140              :     const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
     141              : {
     142              :     (void)deviceId;
     143              :     (void)waitType;
     144              :     (void)hostPid;
     145              :     (void)vfId;
     146            1 :     return 0; // 返回 int32_t
     147              : }
        

Generated by: LCOV version 2.0-1