LCOV - code coverage report
Current view: top level - basic_component/package_manager/inc - tsd_path_mgr.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 1 1
Test Date: 2026-08-31 10:06:05 Functions: - 0 0

            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              : #ifndef TSD_PATH_MGR_H
      12              : #define TSD_PATH_MGR_H
      13              : 
      14              : #include <string>
      15              : #include <cstdint>
      16              : // char_t
      17              : #include "common/type_def.h"
      18              : 
      19              : namespace tsd {
      20              : const std::string BASE_HASH_CFG_FILE = "bin_hash.cfg";
      21              : class TsdPathMgr {
      22              : public:
      23              :     // /usr/lib64/aicpu_kernels/2/ || /home/HwHiAiUser/inuse/aicpu_kernels/0/
      24           15 :     static std::string BuildKernelSoRootPath(const uint32_t uniqueVfId, const std::string& destPath = "");
      25              : 
      26              :     // /usr/lib64/aicpu_kernels/2/aicpu_kernels_device/
      27              :     static std::string BuildKernelSoPath(const uint32_t uniqueVfId);
      28              : 
      29              :     static std::string BuildKernelSoPath(const std::string& kernelSoRootPath);
      30              : 
      31              :     // /usr/lib64/aicpu_kernels/2/aicpu_extend_syskernels/
      32              :     static std::string BuildExtendKernelSoPath(const std::string& kernelSoRootPath);
      33              : 
      34              :     static std::string BuildExtendKernelHashCfgPath(const std::string& kernelSoRootPath);
      35              : 
      36              :     // /usr/lib64/aicpu_kernels/2/aicpu_kernels_device/version.info
      37              :     static std::string AddVersionInfoName(const std::string& kernelSoPath);
      38              : };
      39              : } // namespace tsd
      40              : 
      41              : #endif // TSD_PATH_MGR_H
        

Generated by: LCOV version 2.0-1