LCOV - code coverage report
Current view: top level - legacy/ascend950/unified_platform/resource/buffer/aicpu - rmt_rma_buf_slice_lite.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 7 7
Test Date: 2026-07-28 12:11:00 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 "rmt_rma_buf_slice_lite.h"
      11              : #include "log.h"
      12              : #include "string_util.h"
      13              : namespace Hccl {
      14          143 : RmtRmaBufSliceLite::RmtRmaBufSliceLite(u64 addr, u64 size, u32 rkey, u32 tokenId, u32 tokenValue, u32 notifyId)
      15          143 :     : addr_(addr), size_(size), rkey_(rkey), tokenId_(tokenId), tokenValue_(tokenValue), notifyId_(notifyId)
      16              : {
      17          429 :     HCCL_INFO("RmtRmaBufSliceLite::RmtRmaBufSliceLite:%s", Describe().c_str());
      18          143 : }
      19              : 
      20          146 : std::string RmtRmaBufSliceLite::Describe() const
      21              : {
      22          146 :     return StringFormat("RmtRmaBufSliceLite[addr=0x%llx, size=0x%llx, rkey=%u, notifyId=%u]", addr_, size_,
      23          146 :                         rkey_, notifyId_);
      24              : }
      25              : 
      26              : } // namespace Hccl
        

Generated by: LCOV version 2.0-1