LCOV - code coverage report
Current view: top level - drivers/common/qat - qat_logs.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 2 6 33.3 %
Date: 2024-12-01 18:57:19 Functions: 2 3 66.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 6 33.3 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2018 Intel Corporation
       3                 :            :  */
       4                 :            : 
       5                 :            : #include <rte_log.h>
       6                 :            : #include <rte_hexdump.h>
       7                 :            : 
       8                 :            : #include "qat_logs.h"
       9                 :            : 
      10                 :            : int
      11                 :          0 : qat_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
      12                 :            :                 const void *buf, unsigned int len)
      13                 :            : {
      14         [ #  # ]:          0 :         if (rte_log_can_log(logtype, level))
      15                 :          0 :                 rte_hexdump(rte_log_get_stream(), title, buf, len);
      16                 :            : 
      17                 :          0 :         return 0;
      18                 :            : }
      19                 :            : 
      20         [ -  + ]:        251 : RTE_LOG_REGISTER(qat_gen_logtype, pmd.qat.general, NOTICE);
      21         [ -  + ]:        251 : RTE_LOG_REGISTER(qat_dp_logtype, pmd.qat.dp, NOTICE);

Generated by: LCOV version 1.14