31 #define DUMMY_DBNAME "dummy-db" 32 #define DUMMY_COB_ID 20 33 #define DUMMY_SERVER_ADDR "0@lo:12345:34:10" 97 .rst_typecode = M0_CST_STATS,
static struct m0_reqh_service * service
struct m0_fom_type stats_fom_type
M0_INTERNAL void m0_sm_conf_init(struct m0_sm_conf *conf)
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)
int(* rso_start)(struct m0_reqh_service *service)
#define DUMMY_SERVER_ADDR
static void test_stats(void)
static int ut_stats_service_start(struct m0_reqh_service *service)
struct m0_cob_domain_id rmc_cob_id
static const struct m0_reqh_service_type_ops ut_stats_service_type_ops
static const struct m0_reqh_service_ops ut_stats_service_ops
int m0_reqh_service_type_register(struct m0_reqh_service_type *rstype)
struct m0_reqh_service_type ut_stats_service_type
static const struct socktype stype[]
const struct m0_fom_type_ops fom_stats_type_ops
static int test_stats_fini(void)
static struct m0_ut_rpc_mach_ctx rmach_ctx
static void ut_stats_service_stop(struct m0_reqh_service *service)
M0_INTERNAL void m0_fom_type_init(struct m0_fom_type *type, uint64_t id, const struct m0_fom_type_ops *ops, const struct m0_reqh_service_type *svc_type, const struct m0_sm_conf *sm)
M0_INTERNAL int m0_reqh_service_allocate(struct m0_reqh_service **out, const struct m0_reqh_service_type *stype, struct m0_reqh_context *rctx)
M0_INTERNAL void m0_reqh_service_init(struct m0_reqh_service *service, struct m0_reqh *reqh, const struct m0_fid *fid)
int(* rsto_service_allocate)(struct m0_reqh_service **service, const struct m0_reqh_service_type *stype)
const struct m0_reqh_service_type * rs_type
#define M0_ALLOC_PTR(ptr)
static int ut_stats_service_allocate(struct m0_reqh_service **service, const struct m0_reqh_service_type *stype)
M0_INTERNAL void m0_ut_rpc_mach_fini(struct m0_ut_rpc_mach_ctx *ctx)
struct m0_ut_suite m0_fom_stats_ut
static void test_stats_req_handle(struct m0_reqh *reqh)
static void ut_stats_service_fini(struct m0_reqh_service *service)
M0_INTERNAL void m0_sm_conf_fini(struct m0_sm_conf *conf)
void m0_reqh_service_type_unregister(struct m0_reqh_service_type *rstype)
static int test_stats_init(void)
const struct m0_reqh_service_ops * rs_ops
static struct m0_sm_conf fom_phases_conf