23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CM 39 "-D",
"sr_db",
"-S",
"sr_stob",
40 "-A",
"linuxstob:sr_addb_stob",
201 }
while (
rc == -EAGAIN);
225 }
while (
rc == -EAGAIN);
233 uint64_t lo_hi, uint64_t lo_lo)
235 id->ai_hi.u_hi = hi_hi;
236 id->ai_hi.u_lo = hi_lo;
237 id->ai_lo.u_hi = lo_hi;
238 id->ai_lo.u_lo = lo_lo;
287 &
found->cag_id) <= 0);
352 #undef M0_TRACE_SUBSYSTEM
M0_INTERNAL void m0_cm_lock(struct m0_cm *cm)
static void ag_id_test_cmp()
M0_INTERNAL int m0_reqh_service_start(struct m0_reqh_service *service)
M0_INTERNAL void m0_ut_rpc_mach_init_and_add(struct m0_ut_rpc_mach_ctx *ctx)
struct m0_reqh * m0_cs_reqh_get(struct m0_motr *cctx)
static int cm_ut_init(void)
#define DUMMY_SERVER_ADDR
void cm_ut_service_alloc_init(struct m0_reqh *reqh)
static void cm_ut_server_stop(void)
struct m0_ut_rpc_mach_ctx cmut_rmach_ctx
M0_INTERNAL void m0_cm_aggr_group_add(struct m0_cm *cm, struct m0_cm_aggr_group *ag, bool has_incoming)
M0_INTERNAL void m0_cm_type_deregister(struct m0_cm_type *cmtype)
static void cm_setup_failure_ut(void)
char * cm_ut_server_args[]
int m0_rpc_server_start(struct m0_rpc_server_ctx *sctx)
struct m0_ut_cm cm_ut[MAX_CM_NR]
struct m0_cob_domain_id rmc_cob_id
struct m0_cm_ag_id cag_id
static void cm_prepare_failure_ut(void)
M0_INTERNAL int m0_cm_start(struct m0_cm *cm)
#define container_of(ptr, type, member)
static void cm_ready_failure_ut(void)
static void ag_id_assign(struct m0_cm_ag_id *id, uint64_t hi_hi, uint64_t hi_lo, uint64_t lo_hi, uint64_t lo_lo)
M0_INTERNAL void m0_cm_aggr_group_init(struct m0_cm_aggr_group *ag, struct m0_cm *cm, const struct m0_cm_ag_id *id, bool has_incoming, const struct m0_cm_aggr_group_ops *ag_ops)
struct m0_cm_type cm_ut_cmt
M0_INTERNAL struct m0_reqh_service_type * m0_reqh_service_type_find(const char *sname)
struct m0_reqh_service * cm_ut_service
static struct m0_uint128 id0[UPDATE_NR *DTM_NR]
M0_INTERNAL void m0_cm_unlock(struct m0_cm *cm)
M0_INTERNAL void m0_cm_complete_notify(struct m0_cm *cm)
struct m0_ut_suite cm_generic_ut
static void ag_list_test_sort()
M0_INTERNAL bool m0_fom_domain_is_idle_for(const struct m0_reqh_service *svc)
static void cm_start_failure_ut(void)
const char * rsx_log_file_name
#define M0_NET_XPRT_PREFIX_DEFAULT
M0_INTERNAL int m0_cm_ag_id_cmp(const struct m0_cm_ag_id *id0, const struct m0_cm_ag_id *id1)
static const char * SERVER_LOGFILE
M0_INTERNAL void m0_reqh_service_fini(struct m0_reqh_service *service)
M0_INTERNAL struct m0_cm_aggr_group * m0_cm_aggr_group_locate(struct m0_cm *cm, const struct m0_cm_ag_id *id, bool has_incoming)
struct m0_net_xprt ** rsx_xprts
static void cm_ag_ut(void)
M0_INTERNAL int m0_reqh_service_allocate(struct m0_reqh_service **out, const struct m0_reqh_service_type *stype, struct m0_reqh_context *rctx)
void cm_ut_service_cleanup()
M0_INTERNAL int m0_cm_ready(struct m0_cm *cm)
M0_INTERNAL void m0_reqh_idle_wait(struct m0_reqh *reqh)
struct m0_tl cm_aggr_grps_out
M0_INTERNAL struct m0_reqh_service * m0_reqh_service_find(const struct m0_reqh_service_type *st, const struct m0_reqh *reqh)
M0_INTERNAL int m0_cm_prepare(struct m0_cm *cm)
bool m0_cm_cp_pump_is_complete(const struct m0_cm_cp_pump *cp_pump)
struct m0_cm_sw_update cm_sw_update
struct m0_reqh_context cc_reqh_ctx
struct m0_cm_ag_id ag_ids[MAX_CM_NR][MAX_CM_NR]
#define M0_UT_CONF_PROCESS
struct m0_net_xprt ** m0_net_all_xprt_get(void)
struct m0_reqh_service cm_service
static struct m0_cm * cm_ut_sctx2cm(void)
M0_INTERNAL void m0_ut_rpc_mach_fini(struct m0_ut_rpc_mach_ctx *ctx)
static struct m0_net_test_service svc
static void cm_ut_server_start(void)
struct m0_reqh_service_type ct_stype
static void m0_fi_enable_once(const char *func, const char *tag)
M0_INTERNAL void m0_cm_cp_init(struct m0_cm_type *cmtype, const struct m0_fom_type_ops *ft_ops)
struct m0_cm_cp_pump cm_cp_pump
void m0_rpc_server_stop(struct m0_rpc_server_ctx *sctx)
static void cm_setup_ut(void)
static void cm_init_failure_ut(void)
static int cm_ut_fini(void)
static void ag_id_test_find()
static struct m0_rpc_server_ctx cm_ut_sctx
#define m0_tl_for(name, head, obj)
struct m0_motr rsx_motr_ctx
M0_INTERNAL void m0_cm_aggr_group_fini_and_progress(struct m0_cm_aggr_group *ag)
const struct m0_cm_aggr_group_ops cm_ag_ut_ops
M0_INTERNAL int m0_cm_type_register(struct m0_cm_type *cmtype)