236 fom->fo_local =
true;
379 fom->fo_local =
true;
M0_INTERNAL int m0_reqh_service_state_get(const struct m0_reqh_service *s)
#define M0_ALLOC_ARR(arr, nr)
M0_INTERNAL void m0_mutex_unlock(struct m0_mutex *mutex)
static const struct m0_fom_ops ut_stats_update_fom_ops
struct m0_reqh * m0_cs_reqh_get(struct m0_motr *cctx)
M0_INTERNAL void m0_reqh_service_stop(struct m0_reqh_service *service)
struct m0_rpc_machine ut_stats_machine
int(* fo_tick)(struct m0_fom *fom)
M0_INTERNAL void m0_fop_init(struct m0_fop *fop, struct m0_fop_type *fopt, void *data, void(*fop_release)(struct m0_ref *))
struct m0_uint64_seq ss_data
M0_INTERNAL void m0_reqh_service_prepare_to_stop(struct m0_reqh_service *service)
static void stats_query_fom_fini(struct m0_fom *fom)
void fop_release(struct m0_ref *ref)
static void stats_ut_svc_query_fom()
struct m0_stats_recs sqrf_stats
static struct m0_rpc_client_ctx cctx
#define container_of(ptr, type, member)
M0_INTERNAL void m0_mutex_lock(struct m0_mutex *mutex)
M0_INTERNAL void m0_sm_group_fini(struct m0_sm_group *grp)
M0_INTERNAL void m0_cond_init(struct m0_cond *cond, struct m0_mutex *mutex)
static void stats_svc_query_api()
struct m0_sm_group rm_sm_grp
struct disk_stats d_stats
struct m0_uint64_seq sqf_ids
static int stats_update_fom_tick(struct m0_fom *fom)
void m0_fop_rpc_machine_set(struct m0_fop *fop, struct m0_rpc_machine *mach)
static void check_stats_recs(struct m0_stats_recs *recs, int num)
static void query_fom_test(struct stats_svc *srv, struct m0_reqh *reqh, int count)
static int stats_update_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
static int stats_sum_copy(struct m0_stats_sum *s, struct m0_stats_sum *d)
struct m0_cond ut_stats_cond
static int stats_query_fom_tick(struct m0_fom *fom)
M0_INTERNAL void m0_sm_group_init(struct m0_sm_group *grp)
struct m0_rpc_server_ctx stats_ut_sctx_bk
M0_INTERNAL void m0_cond_fini(struct m0_cond *cond)
M0_INTERNAL void m0_reqh_service_fini(struct m0_reqh_service *service)
struct m0_stats_sum * sf_stats
M0_INTERNAL struct m0_stats_query_rep_fop * m0_stats_query_rep_fop_get(struct m0_fop *fop)
M0_INTERNAL void m0_cond_signal(struct m0_cond *cond)
static void stop_rpc_client_and_server(void)
static size_t stats_fom_home_locality(const struct m0_fom *fom)
static struct m0_rpc_server_ctx sctx
struct m0_fop_type m0_fop_stats_update_fopt
M0_INTERNAL void m0_mutex_init(struct m0_mutex *mutex)
static char * stats_ut_server_argv[]
int m0_stats_query(struct m0_rpc_session *session, struct m0_stats_recs **stats)
#define SERVER_ADDB_STOB_NAME
M0_INTERNAL void m0_fop_fini(struct m0_fop *fop)
M0_INTERNAL struct m0_stats_query_fop * m0_stats_query_fop_get(struct m0_fop *fop)
struct m0_addb2__id_intrp ids[]
struct m0_stats_recs suf_stats
static struct m0_uint64_seq * create_stats_id_seq(int count)
static bool stats_svc_invariant(const struct stats_svc *svc)
struct m0_mutex ut_stats_mutex
static void stats_ut_svc_start_stop()
M0_INTERNAL void m0_cond_wait(struct m0_cond *cond)
uint64_t fr_avg_turnaround_time_ns
M0_INTERNAL struct m0_reqh_service * m0_reqh_service_find(const struct m0_reqh_service_type *st, const struct m0_reqh *reqh)
struct m0_rpc_session rcx_session
static void update_fom_test(struct stats_svc *srv, struct m0_reqh *reqh, int count)
void check_stats(struct m0_tl *stats_list, int count)
#define M0_ALLOC_PTR(ptr)
struct m0_stats_sum stats_sum[3]
#define M0_UT_CONF_PROCESS
static struct m0_fop * get_fake_stats_fop(uint32_t nsum, enum fop_type type)
static const struct m0_fom_ops ut_stats_query_fom_ops
void m0_stats_free(struct m0_stats_recs *stats)
struct m0_reqh_service_type m0_stats_svc_type
void m0_fop_put_lock(struct m0_fop *fop)
static struct m0_fop * fop
struct m0_reqh_service ss_reqhs
M0_INTERNAL void m0_fom_queue(struct m0_fom *fom)
#define SERVER_ENDPOINT_ADDR
static void fill_stats_input()
static void stats_update_fom_fini(struct m0_fom *fom)
static void stats_ut_svc_update_fom()
M0_INTERNAL struct m0_stats * m0_stats_get(struct m0_tl *stats_list, uint64_t id)
struct m0_fop_type m0_fop_stats_query_fopt
M0_INTERNAL struct m0_stats_update_fop * m0_stats_update_fop_get(struct m0_fop *fop)
static void start_rpc_client_and_server(void)
struct m0_motr rsx_motr_ctx
static void test_state_update_fom_fini(struct m0_fom *fom)
static struct net_srv srv
static int stats_query_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
static void test_state_query_fom_fini(struct m0_fom *fom)