30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 156 .hesc_rpc_machine = &
ctx->hurc_rpc_machine,
182 .hecc_rpc_machine = &
ctx->hurc_rpc_machine,
186 ctx->hurc_rpc_machine.rm_tm.ntm_ep->nep_addr, &ecl_cfg);
302 #undef M0_TRACE_SUBSYSTEM
M0_INTERNAL void m0_chan_wait(struct m0_clink *link)
#define M0_ALLOC_ARR(arr, nr)
M0_INTERNAL void m0_clink_init(struct m0_clink *link, m0_chan_cb_t cb)
void m0_ha_ut_entrypoint_client(void)
M0_INTERNAL void m0_clink_del_lock(struct m0_clink *link)
static struct io_request req
static bool ha_ut_entrypoint_client_cb(struct m0_clink *clink)
M0_INTERNAL void m0_ha_entrypoint_server_start(struct m0_ha_entrypoint_server *hes)
#define M0_FID_INIT(container, key)
M0_INTERNAL void m0_ha_entrypoint_client_stop(struct m0_ha_entrypoint_client *ecl)
M0_INTERNAL enum m0_ha_entrypoint_client_state m0_ha_entrypoint_client_state_get(struct m0_ha_entrypoint_client *ecl)
M0_INTERNAL void m0_ha_ut_rpc_ctx_init(struct m0_ha_ut_rpc_ctx *ctx)
#define container_of(ptr, type, member)
M0_INTERNAL void m0_ha_entrypoint_client_request(struct m0_ha_entrypoint_client *ecl)
M0_INTERNAL void m0_ha_entrypoint_server_reply(struct m0_ha_entrypoint_server *hes, const struct m0_uint128 *req_id, const struct m0_ha_entrypoint_rep *rep)
struct m0_fop_getxattr_rep * rep
char ** ueus_confd_endpoints
struct m0_ha_entrypoint_server ueus_server
struct m0_reqh * hecc_reqh
static void ha_ut_entrypoint_reply_check(struct ha_ut_entrypoint_usecase_ctx *uctx, struct m0_ha_entrypoint_rep *rep)
static void ha_ut_entrypoint_request_arrived(struct m0_ha_entrypoint_server *hes, const struct m0_ha_entrypoint_req *req, const struct m0_uint128 *req_id)
M0_INTERNAL int m0_ha_entrypoint_server_init(struct m0_ha_entrypoint_server *hes, struct m0_ha_entrypoint_server_cfg *hes_cfg)
void m0_ha_ut_entrypoint_usecase(void)
struct m0_fid ueus_rm_fid
M0_INTERNAL void m0_ha_entrypoint_server_fini(struct m0_ha_entrypoint_server *hes)
M0_INTERNAL int m0_ha_entrypoint_client_init(struct m0_ha_entrypoint_client *ecl, const char *ep, struct m0_ha_entrypoint_client_cfg *ecl_cfg)
static void ha_ut_entrypoint_client_start(struct ha_ut_entrypoint_usecase_ctx *uctx, struct m0_ha_ut_rpc_ctx *ctx, struct m0_ha_entrypoint_client *ecl)
struct m0_reqh * hesc_reqh
static void ha_ut_entrypoint_server_start(struct ha_ut_entrypoint_usecase_ctx *uctx, struct m0_ha_ut_rpc_ctx *ctx, struct m0_ha_entrypoint_server *esr)
static struct m0_clink clink[RDWR_REQUEST_MAX]
static struct fdmi_ctx ctx
static void ha_ut_entrypoint_client_stop(struct ha_ut_entrypoint_usecase_ctx *uctx, struct m0_ha_entrypoint_client *ecl)
M0_INTERNAL void m0_ha_ut_rpc_ctx_fini(struct m0_ha_ut_rpc_ctx *ctx)
M0_INTERNAL bool m0_fid_eq(const struct m0_fid *fid0, const struct m0_fid *fid1)
void m0_clink_add_lock(struct m0_chan *chan, struct m0_clink *link)
enum m0_ha_entrypoint_control ueus_control
M0_INTERNAL void m0_ha_entrypoint_client_start_sync(struct m0_ha_entrypoint_client *ecl)
M0_INTERNAL uint64_t m0_rnd64(uint64_t *seed)
m0_ha_entrypoint_client_state
M0_INTERNAL void m0_ha_entrypoint_client_fini(struct m0_ha_entrypoint_client *ecl)
#define M0_ALLOC_PTR(ptr)
static void ha_ut_entrypoint_server_stop(struct ha_ut_entrypoint_usecase_ctx *uctx, struct m0_ha_entrypoint_server *esr)
M0_INTERNAL void m0_clink_fini(struct m0_clink *link)
M0_INTERNAL void m0_ha_entrypoint_server_stop(struct m0_ha_entrypoint_server *hes)
static void ha_ut_entrypoint_reply_fini(struct ha_ut_entrypoint_usecase_ctx *uctx)
M0_INTERNAL struct m0_chan * m0_ha_entrypoint_client_chan(struct m0_ha_entrypoint_client *ecl)
struct m0_fid * ueus_confd_fids
struct m0_ha_entrypoint_client ueus_client
struct m0_ha_entrypoint_rep ecl_rep
struct m0_clink ueus_clink
static void ha_ut_entrypoint_reply_init(struct ha_ut_entrypoint_usecase_ctx *uctx)