LCOV - code coverage report
Current view: top level - adump/device - adx_dump_soc_api.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 4 4
Test Date: 2026-08-31 10:09:28 Functions: 100.0 % 3 3

            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              : #include "adx_dump_soc_helper.h"
      12              : 
      13              : /**
      14              :  * @brief dump start api,create a HDC session for dump
      15              :  * @param [in] connectInfo: remote connect info
      16              :  *
      17              :  * @return
      18              :  *      not NULL: Handle used by hdc
      19              :  *      NULL:     dump start failed
      20              :  */
      21            3 : extern "C" IDE_SESSION IdeDumpStart(const char* connectInfo) { return Adx::SocDumpStart(connectInfo); }
      22              : 
      23              : /**
      24              :  * @brief dump data to remote server
      25              :  * @param [in] session: HDC session to dump data
      26              :  * @param [in] dumpChunk: Dump information
      27              :  * @return
      28              :  *      IDE_DAEMON_INVALID_PARAM_ERROR: invalid parameter
      29              :  *      IDE_DAEMON_UNKNOW_ERROR: write data failed
      30              :  *      IDE_DAEMON_NONE_ERROR:   write data succ
      31              :  */
      32            2 : extern "C" IdeErrorT IdeDumpData(IDE_SESSION session, const IdeDumpChunk* dumpChunk)
      33              : {
      34            2 :     return Adx::SocDumpData(session, dumpChunk);
      35              : }
      36              : 
      37              : /**
      38              :  * @brief send dump end msg
      39              :  * @param [in] session: HDC session to dump data
      40              :  * @return
      41              :  *      IDE_DAEMON_UNKNOW_ERROR: send dump end msg failed
      42              :  *      IDE_DAEMON_NONE_ERROR:   send dump end msg success
      43              :  */
      44            1 : extern "C" IdeErrorT IdeDumpEnd(IDE_SESSION session) { return Adx::SocDumpEnd(session); }
        

Generated by: LCOV version 2.0-1