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 % 11 11
Test Date: 2026-08-18 17:47:01 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              : 
      11              : #include "rmt_rma_buf_slice_lite.h"
      12              : #include "log.h"
      13              : #include "string_util.h"
      14              : namespace Hccl {
      15          144 : RmtRmaBufSliceLite::RmtRmaBufSliceLite(u64 addr, u64 size, u32 rkey, u32 tokenId, u32 tokenValue, u32 notifyId)
      16          144 :     : addr_(addr),
      17          144 :       size_(size),
      18          144 :       rkey_(rkey),
      19          144 :       tokenId_(tokenId),
      20          144 :       tokenValue_(tokenValue),
      21          144 :       notifyId_(notifyId)
      22              : {
      23          430 :     HCCL_INFO("RmtRmaBufSliceLite::RmtRmaBufSliceLite:%s", Describe().c_str());
      24          144 : }
      25              : 
      26          147 : std::string RmtRmaBufSliceLite::Describe() const
      27              : {
      28              :     return StringFormat(
      29          147 :         "RmtRmaBufSliceLite[addr=0x%llx, size=0x%llx, rkey=%u, notifyId=%u]", addr_, size_, rkey_, notifyId_);
      30              : }
      31              : 
      32              : } // namespace Hccl
        

Generated by: LCOV version 2.0-1