LCOV - code coverage report
Current view: top level - spdk/module/event/subsystems/sock - sock.c (source / functions) Hit Total Coverage
Test: Combined Lines: 10 10 100.0 %
Date: 2024-07-15 09:31:40 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*   SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  *   Copyright (C) 2021 Intel Corporation.
       3                 :            :  *   Copyright (c) 2020 Mellanox Technologies LTD. All rights reserved.
       4                 :            :  */
       5                 :            : 
       6                 :            : #include "spdk/stdinc.h"
       7                 :            : #include "spdk/sock.h"
       8                 :            : #include "spdk_internal/init.h"
       9                 :            : 
      10                 :            : static void
      11                 :       2022 : sock_subsystem_init(void)
      12                 :            : {
      13                 :       2022 :         spdk_subsystem_init_next(0);
      14                 :       2022 : }
      15                 :            : 
      16                 :            : static void
      17                 :       2022 : sock_subsystem_fini(void)
      18                 :            : {
      19                 :       2022 :         spdk_subsystem_fini_next();
      20                 :       2022 : }
      21                 :            : 
      22                 :            : static void
      23                 :         98 : sock_subsystem_write_config_json(struct spdk_json_write_ctx *w)
      24                 :            : {
      25                 :         98 :         spdk_sock_write_config_json(w);
      26                 :         98 : }
      27                 :            : 
      28                 :            : static struct spdk_subsystem g_spdk_subsystem_sock = {
      29                 :            :         .name = "sock",
      30                 :            :         .init = sock_subsystem_init,
      31                 :            :         .fini = sock_subsystem_fini,
      32                 :            :         .write_config_json = sock_subsystem_write_config_json,
      33                 :            : };
      34                 :            : 
      35                 :       2112 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_sock);

Generated by: LCOV version 1.14