LCOV - code coverage report
Current view: top level - acl/aclrt_impl/toolchain - dump_shim.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 5 5
Test Date: 2026-07-28 10:53:01 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              : #include "dump_shim.h"
      11              : #include "common/log_inner.h"
      12              : 
      13              : namespace acl {
      14              : static AdumpCallbacks g_adumpCallbacks = {nullptr, nullptr, nullptr, nullptr};
      15              : 
      16           13 : void SetAdumpCallbacks(const AdumpCallbacks& callbacks)
      17              : {
      18           13 :     g_adumpCallbacks = callbacks;
      19           13 :     ACL_LOG_INFO("Adump callbacks registered.");
      20           13 : }
      21              : 
      22          105 : const AdumpCallbacks& GetAdumpCallbacks() { return g_adumpCallbacks; }
      23              : } // namespace acl
        

Generated by: LCOV version 2.0-1