Motr  M0
ios_buffer_pool.c File Reference
#include "ioservice/io_service.c"
#include "ut/misc.h"
#include "ut/ut.h"
Include dependency graph for ios_buffer_pool.c:

Go to the source code of this file.

Macros

#define TRANSPORTNAME   M0_NET_XPRT_PREFIX_DEFAULT":"
 
#define SERVER_LOG_FILE_NAME   "cs_ut.errlog"
 

Functions

static int get_ioservice_buffer_pool_count (struct m0_rpc_server_ctx *sctx)
 
static int check_buffer_pool_per_domain (char *cs_argv[], int cs_argc, int nbp)
 
void test_ios_bp_single_dom ()
 
void test_ios_bp_multi_dom ()
 
void test_ios_bp_repeat_dom ()
 
void test_ios_bp_onerepeat_dom ()
 

Variables

const struct m0_tl_descr bufferpools_tl
 
static char * ios_ut_bp_singledom_cmd []
 
static char * ios_ut_bp_multidom_cmd []
 
static char * ios_ut_bp_repeatdom_cmd []
 
static char * ios_ut_bp_onerepeatdom_cmd []
 
struct m0_ut_suite ios_bufferpool_ut
 

Macro Definition Documentation

◆ SERVER_LOG_FILE_NAME

#define SERVER_LOG_FILE_NAME   "cs_ut.errlog"

Definition at line 81 of file ios_buffer_pool.c.

◆ TRANSPORTNAME

#define TRANSPORTNAME   M0_NET_XPRT_PREFIX_DEFAULT":"

Definition at line 27 of file ios_buffer_pool.c.

Function Documentation

◆ check_buffer_pool_per_domain()

static int check_buffer_pool_per_domain ( char *  cs_argv[],
int  cs_argc,
int  nbp 
)
static

Definition at line 97 of file ios_buffer_pool.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_ioservice_buffer_pool_count()

static int get_ioservice_buffer_pool_count ( struct m0_rpc_server_ctx sctx)
static

Definition at line 83 of file ios_buffer_pool.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_ios_bp_multi_dom()

void test_ios_bp_multi_dom ( )

Definition at line 126 of file ios_buffer_pool.c.

Here is the call graph for this function:

◆ test_ios_bp_onerepeat_dom()

void test_ios_bp_onerepeat_dom ( )

Definition at line 139 of file ios_buffer_pool.c.

Here is the call graph for this function:

◆ test_ios_bp_repeat_dom()

void test_ios_bp_repeat_dom ( )

Definition at line 133 of file ios_buffer_pool.c.

Here is the call graph for this function:

◆ test_ios_bp_single_dom()

void test_ios_bp_single_dom ( )

Definition at line 119 of file ios_buffer_pool.c.

Here is the call graph for this function:

Variable Documentation

◆ bufferpools_tl

const struct m0_tl_descr bufferpools_tl

◆ ios_bufferpool_ut

struct m0_ut_suite ios_bufferpool_ut
Initial value:
= {
.ts_name = "ios-bufferpool-ut",
.ts_init = NULL,
.ts_fini = NULL,
.ts_tests = {
{ "ios-bufferpool-single-domain", test_ios_bp_single_dom},
{ "ios-bufferpool-multiple-domains", test_ios_bp_multi_dom},
{ "ios-bufferpool-repeat-domains", test_ios_bp_repeat_dom},
{ "ios-bufferpool-onerepeat-domain", test_ios_bp_onerepeat_dom},
{ NULL, NULL }
}
}
#define NULL
Definition: misc.h:38
void test_ios_bp_single_dom()
void test_ios_bp_repeat_dom()
void test_ios_bp_onerepeat_dom()
void test_ios_bp_multi_dom()

Definition at line 146 of file ios_buffer_pool.c.

◆ ios_ut_bp_multidom_cmd

char* ios_ut_bp_multidom_cmd[]
static
Initial value:
= {
"m0d", "-T", "AD",
"-D", "cs_sdb", "-S", "cs_stob",
"-A", "linuxstob:cs_addb_stob",
"-w", "10",
"-e", M0_NET_XPRT_PREFIX_DEFAULT":0@lo:12345:34:1",
"-e", "bulk-mem:127.0.0.1:35678",
"-H", "0@lo:12345:34:1",
"-c", M0_UT_PATH("conf.xc")
}
#define M0_NET_XPRT_PREFIX_DEFAULT
Definition: net.h:98
#define M0_UT_CONF_PROCESS
Definition: misc.h:45
#define M0_UT_PATH(name)
Definition: misc.h:41

Definition at line 43 of file ios_buffer_pool.c.

◆ ios_ut_bp_onerepeatdom_cmd

char* ios_ut_bp_onerepeatdom_cmd[]
static
Initial value:
= {
"m0d", "-T", "AD",
"-D", "cs_sdb", "-S", "cs_stob",
"-A", "linuxstob:cs_addb_stob",
"-w", "10",
"-e", M0_NET_XPRT_PREFIX_DEFAULT":0@lo:12345:34:1",
"-e", "bulk-mem:127.0.0.1:35678",
"-e", "bulk-mem:127.0.0.1:35679",
"-H", "0@lo:12345:34:1",
"-c", M0_UT_PATH("conf.xc")
}
#define M0_NET_XPRT_PREFIX_DEFAULT
Definition: net.h:98
#define M0_UT_CONF_PROCESS
Definition: misc.h:45
#define M0_UT_PATH(name)
Definition: misc.h:41

Definition at line 68 of file ios_buffer_pool.c.

◆ ios_ut_bp_repeatdom_cmd

char* ios_ut_bp_repeatdom_cmd[]
static
Initial value:
= {
"m0d", "-T", "AD",
"-D", "cs_sdb", "-S", "cs_stob",
"-A", "linuxstob:cs_addb_stob",
"-w", "10",
"-e", M0_NET_XPRT_PREFIX_DEFAULT":0@lo:12345:34:1",
"-e", "bulk-mem:127.0.0.1:35678",
"-e", "bulk-mem:127.0.0.1:35679",
"-H", "0@lo:12345:34:1",
"-c", M0_UT_PATH("conf.xc")
}
#define M0_NET_XPRT_PREFIX_DEFAULT
Definition: net.h:98
#define M0_UT_CONF_PROCESS
Definition: misc.h:45
#define M0_UT_PATH(name)
Definition: misc.h:41

Definition at line 55 of file ios_buffer_pool.c.

◆ ios_ut_bp_singledom_cmd

char* ios_ut_bp_singledom_cmd[]
static
Initial value:
= {
"m0d", "-T", "AD",
"-D", "cs_sdb", "-S", "cs_stob",
"-A", "linuxstob:cs_addb_stob",
"-e", M0_NET_XPRT_PREFIX_DEFAULT":0@lo:12345:34:1",
"-H", "0@lo:12345:34:1",
"-w", "10",
"-c", M0_UT_PATH("conf.xc")
}
#define M0_NET_XPRT_PREFIX_DEFAULT
Definition: net.h:98
#define M0_UT_CONF_PROCESS
Definition: misc.h:45
#define M0_UT_PATH(name)
Definition: misc.h:41

Definition at line 32 of file ios_buffer_pool.c.