23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_SPIEL    66                           .rhia_dtm     = (
void *)1,
    67                           .rhia_mdstore = (
void *)1,
   108                                               const char          *confdb_path)
   111                 LOG_NAME_MAX_LEN     = 128,
   113                 RPC_SIZE_MAX_LEN     = 32,
   116         char                log_name[LOG_NAME_MAX_LEN];
   117         char                full_ep[EP_MAX_LEN];
   118         char                max_rpc_size[RPC_SIZE_MAX_LEN];
   122         snprintf(max_rpc_size, RPC_SIZE_MAX_LEN,
   125 #define NAME(ext) "ut_spiel" ext   127                 NAME(
""), 
"-T", 
"AD", 
"-D", 
NAME(
".db"), 
"-S", 
NAME(
".stob"),
   128                 "-A", 
"linuxstob:"NAME(
"-addb_stob"), 
"-w", 
"10",
   130                 "-m", max_rpc_size, 
"-G", full_ep,
   131                 "-c", (
char *)confdb_path
   142         snprintf(log_name, LOG_NAME_MAX_LEN, 
"confd_%s.log", ha_ep);
   154                                    const char      *confd_path,
   188 #undef M0_TRACE_SUBSYSTEM 
int m0_spiel_cmd_profile_set(struct m0_spiel *spiel, const char *profile_str)
 
#define M0_UT_CONF_PROFILE
 
void m0_rpc_machine_fini(struct m0_rpc_machine *machine)
 
struct m0_spiel_ut_reqh ut_reqh
 
M0_INTERNAL void m0_reqh_services_terminate(struct m0_reqh *reqh)
 
void m0_net_domain_fini(struct m0_net_domain *dom)
 
static const char * ep_addr
 
#define M0_REQH_INIT(reqh,...)
 
const struct m0_conf_obj_type M0_CONF_SERVICE_TYPE
 
int m0_rpc_server_start(struct m0_rpc_server_ctx *sctx)
 
struct m0_rpc_server_ctx sur_confd_srv
 
void m0_spiel_fini(struct m0_spiel *spiel)
 
void m0_spiel_rconfc_stop(struct m0_spiel *spiel)
 
M0_INTERNAL int m0_spiel__ut_reqh_init(struct m0_spiel_ut_reqh *spl_reqh, const char *ep_addr)
 
static int m0_spiel__ut_rms_start(struct m0_reqh *reqh)
 
#define CLIENT_ENDPOINT_ADDR
 
M0_INTERNAL void m0_reqh_fini(struct m0_reqh *reqh)
 
M0_INTERNAL void m0_spiel__ut_fini(struct m0_spiel *spiel, bool cmd_iface)
 
M0_INTERNAL void m0_spiel__ut_reqh_fini(struct m0_spiel_ut_reqh *spl_reqh)
 
M0_INTERNAL int m0_spiel__ut_rpc_server_start(struct m0_rpc_server_ctx *rpc_srv, const char *ha_ep, const char *confdb_path)
 
const char * rsx_log_file_name
 
#define M0_NET_XPRT_PREFIX_DEFAULT
 
const struct m0_fid_type cot_ftype
 
M0_INTERNAL void m0_fid_tgenerate(struct m0_fid *fid, const uint8_t tid)
 
M0_INTERNAL int m0_rpc_net_buffer_pool_setup(struct m0_net_domain *ndom, struct m0_net_buffer_pool *app_pool, uint32_t bufs_nr, uint32_t tm_nr)
 
M0_INTERNAL uint32_t m0_rpc_bufs_nr(uint32_t len, uint32_t tms_nr)
 
const char * confd_addr[]
 
M0_INTERNAL int m0_rpc_machine_init(struct m0_rpc_machine *machine, struct m0_net_domain *net_dom, const char *ep_addr, struct m0_reqh *reqh, struct m0_net_buffer_pool *receive_pool, uint32_t colour, m0_bcount_t msg_size, uint32_t queue_len)
 
struct m0_net_xprt * m0_net_xprt_default_get(void)
 
struct m0_net_xprt ** rsx_xprts
 
struct m0_net_domain sur_net_dom
 
M0_INTERNAL int m0_reqh_service_setup(struct m0_reqh_service **out, struct m0_reqh_service_type *stype, struct m0_reqh *reqh, struct m0_reqh_context *rctx, const struct m0_fid *fid)
 
M0_INTERNAL void m0_spiel__ut_init(struct m0_spiel *spiel, const char *confd_path, bool cmd_iface)
 
static struct m0_spiel_ut_reqh * spl_reqh
 
struct m0_rpc_machine sur_rmachine
 
struct m0_reqh_service_type m0_rms_type
 
M0_INTERNAL void m0_reqh_start(struct m0_reqh *reqh)
 
static struct m0_fid profile
 
int m0_spiel_rconfc_start(struct m0_spiel *spiel, m0_rconfc_cb_t expired_cb)
 
int m0_net_domain_init(struct m0_net_domain *dom, const struct m0_net_xprt *xprt)
 
#define M0_UT_CONF_PROCESS
 
struct m0_net_xprt ** m0_net_all_xprt_get(void)
 
struct m0_net_buffer_pool sur_buf_pool
 
void m0_rpc_server_stop(struct m0_rpc_server_ctx *sctx)
 
static struct m0_addb2_net * net
 
static struct m0_net_buffer_pool * buf_pool
 
#define SERVER_ENDPOINT_ADDR
 
M0_INTERNAL void m0_spiel__ut_rpc_server_stop(struct m0_rpc_server_ctx *rpc_srv)
 
void m0_rpc_net_buffer_pool_cleanup(struct m0_net_buffer_pool *app_pool)
 
static struct m0_reqh_service * service[REQH_IN_UT_MAX]
 
struct m0_fid g_process_fid
 
int m0_spiel_init(struct m0_spiel *spiel, struct m0_reqh *reqh)