24 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 164 str_write[
i] =
'0' + (
i % 10);
192 char fail_location[] =
"fail_location";
209 str_write[
i] =
'0' + (
i % 10);
264 .rhia_dtm = (
void *)1,
265 .rhia_mdstore = (
void *)1,
338 #undef M0_TRACE_SUBSYSTEM
#define M0_CONFD_FID(old_version, new_version, tx_id)
void m0_rpc_machine_fini(struct m0_rpc_machine *machine)
M0_INTERNAL void m0_reqh_services_terminate(struct m0_reqh *reqh)
void m0_net_domain_fini(struct m0_net_domain *dom)
static void conf_ut_reqh_fini(struct m0_conf_ut_reqh *conf_reqh)
static const char * ep_addr
#define M0_REQH_INIT(reqh,...)
M0_INTERNAL void m0_fop_init(struct m0_fop *fop, struct m0_fop_type *fopt, void *data, void(*fop_release)(struct m0_ref *))
M0_INTERNAL void m0_free_aligned(void *data, size_t size, unsigned shift)
M0_INTERNAL void m0_reqh_fini(struct m0_reqh *reqh)
static void conf_save_load_fail(void)
M0_INTERNAL uint32_t m0_stob_block_shift(struct m0_stob *stob)
struct m0_fop_type m0_fop_conf_load_fopt
void m0_confd_stob_fini(struct m0_stob *stob)
static int conf_ut_reqh_init(struct m0_conf_ut_reqh *conf_reqh, const char *ep_addr)
#define M0_AMB(obj, ptr, field)
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
static struct m0_stob * stob
static void conf_flip_fom_create_fail(void)
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)
const struct m0_fom_ops conf_flip_fom_ops
struct m0_net_domain cur_net_dom
M0_INTERNAL uint32_t m0_rpc_bufs_nr(uint32_t len, uint32_t tms_nr)
int m0_confd_stob_init(struct m0_stob **stob, const char *location, struct m0_fid *confd_fid)
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)
int m0_confd_stob_write(struct m0_stob *stob, char *str)
static void conf_load_fom_create_fail(void)
static void m0_fi_enable_off_n_on_m(const char *func, const char *tag, uint32_t n, uint32_t m)
struct m0_net_buffer_pool cur_buf_pool
M0_INTERNAL int m0_stob_domain_destroy_location(const char *location)
M0_INTERNAL void m0_reqh_start(struct m0_reqh *reqh)
struct m0_conf_ut_reqh * conf_reqh
int m0_net_domain_init(struct m0_net_domain *dom, const struct m0_net_xprt *xprt)
static void conf_save_load(void)
#define M0_ALLOC_PTR(ptr)
static int conf_load_ut_fini()
struct m0_rpc_machine cur_rmachine
struct m0_fop_type m0_fop_conf_flip_fopt
static struct m0_fop * fop
static void m0_fi_enable_once(const char *func, const char *tag)
static void conf_fop_ut_release(struct m0_ref *ref)
static struct m0_addb2_net * net
static struct m0_net_buffer_pool * buf_pool
#define SERVER_ENDPOINT_ADDR
int m0_confd_stob_read(struct m0_stob *stob, char **str)
static int conf_load_ut_init()
struct m0_net_xprt * xprt
void m0_rpc_net_buffer_pool_cleanup(struct m0_net_buffer_pool *app_pool)
M0_INTERNAL void * m0_alloc_aligned(size_t size, unsigned shift)
struct m0_rpc_machine * ri_rmachine
const struct m0_fom_ops conf_load_fom_ops
struct m0_ut_suite conf_load_ut
M0_INTERNAL int m0_conf_flip_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
struct m0_rpc_item f_item
struct m0_fid g_process_fid
static const char linux_location[]
M0_INTERNAL int m0_conf_load_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)