LCOV - code coverage report
Current view: top level - adump/exception - adx_exception_callback.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 10 10
Test Date: 2026-07-28 10:54:24 Functions: 100.0 % 2 2

            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 "adx_exception_callback.h"
      11              : #include "dump_tensor_plugin.h"
      12              : #include "log/adx_log.h"
      13              : 
      14              : namespace Adx {
      15            2 : int32_t AdumpRegHeadProcess(DfxTensorType tensorType, HeadProcess headProcess)
      16              : {
      17            2 :     IDE_CTRL_VALUE_FAILED(headProcess != nullptr, return -1, "HeadProcess is nullptr");
      18            2 :     DumpTensorPlugin::Instance().HeadCallbackRegister(tensorType, headProcess);
      19            2 :     IDE_LOGI("Received new head process registry for tensorType:%hu", tensorType);
      20            2 :     return 0;
      21              : }
      22              : 
      23            2 : int32_t AdumpRegTensorProcess(DfxTensorType tensorType, TensorProcess tensorProcess)
      24              : {
      25            2 :     IDE_CTRL_VALUE_FAILED(tensorProcess != nullptr, return -1, "TensorProcess is nullptr");
      26            2 :     DumpTensorPlugin::Instance().TensorCallbackRegister(tensorType, tensorProcess);
      27            2 :     IDE_LOGI("Received new tensor process registry for tensorType:%hu", tensorType);
      28            2 :     return 0;
      29              : }
      30              : }
        

Generated by: LCOV version 2.0-1