LCOV - code coverage report
Current view: top level - stub/driver - ascend_inpackage_hal.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 10 10
Test Date: 2026-08-12 11:05:07 Functions: 100.0 % 1 1

            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 "driver/ascend_hal.h"
      12            2 : DLLEXPORT drvError_t drvQueryProcessHostPid(
      13              :     int pid, unsigned int* chip_id, unsigned int* vfid, unsigned int* host_pid, unsigned int* cp_type)
      14              : {
      15              :     (void)pid;
      16              :     (void)chip_id;
      17              :     (void)vfid;
      18              :     (void)host_pid;
      19              :     (void)cp_type;
      20            2 :     if (chip_id == nullptr) {
      21            1 :         chip_id = nullptr;
      22              :     }
      23            2 :     if (vfid == nullptr) {
      24            1 :         vfid = nullptr;
      25              :     }
      26            2 :     if (host_pid == nullptr) {
      27            1 :         host_pid = nullptr;
      28              :     }
      29            2 :     if (cp_type == nullptr) {
      30            1 :         cp_type = nullptr;
      31              :     }
      32            2 :     return DRV_ERROR_NONE;
      33              : }
        

Generated by: LCOV version 2.0-1