#include "lib/trace.h"
#include "lib/memory.h"
#include "fop/fom.h"
#include "fop/fom_generic.h"
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
#include "rpc/rpc_opcodes.h"
#include "net/net.h"
#include "net/buffer_pool.h"
#include "ut/ut.h"
#include "rpc/rpc.h"
#include "rpc/rpclib.h"
#include "rpc/at.h"
#include "rpc/ut/at/at_ut.h"
#include "rpc/ut/at/at_ut_xc.h"
Go to the source code of this file.
|
static int | atsvc_start (struct m0_reqh_service *svc) |
|
static void | atsvc_stop (struct m0_reqh_service *svc) |
|
static void | atsvc_fini (struct m0_reqh_service *svc) |
|
static int | atsvc_type_allocate (struct m0_reqh_service **svc, const struct m0_reqh_service_type *stype) |
|
static void | req_fini (void) |
|
static void | req_send (struct atut__req *req, struct atut__rep **rep) |
|
M0_INTERNAL void | atut__bufdata_alloc (struct m0_buf *buf, size_t size, struct m0_rpc_machine *rmach) |
|
static struct m0_rpc_conn * | client_conn (void) |
|
static size_t | atfom_home_locality (const struct m0_fom *fom) |
|
static bool | atdata_is_correct (const struct m0_buf *buf, uint32_t len) |
|
static bool | atbuf_check (const struct m0_rpc_at_buf *ab, uint32_t len, enum m0_rpc_at_type type) |
|
static void | reqbuf_check (uint32_t test_id, const struct m0_buf *buf, int rc) |
|
static void | load_check (uint32_t test_id, const struct m0_rpc_at_buf *ab, int result) |
|
static void | repbuf_fill (uint32_t test_id, struct m0_buf *buf) |
|
static void | reply_check (uint32_t test_id, const struct m0_rpc_at_buf *ab, int result) |
|
static void | reply_rc_check (uint32_t test_id, const struct m0_rpc_at_buf *ab, int rc) |
|
bool | reply_is_necessary (uint32_t test_id) |
|
static int | atfom_tick (struct m0_fom *fom0) |
|
static void | atfom_fini (struct m0_fom *fom0) |
|
static int | atfom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh) |
|
static void | at_fops_init (void) |
|
static void | at_fops_fini (void) |
|
static void | client_start (void) |
|
static void | client_stop (void) |
|
static void | reqh_start (void) |
|
static void | reqh_stop (void) |
|
static void | reqh_init (void) |
|
static void | reqh_fini (void) |
|
static void | init (void) |
|
static void | fini (void) |
|
static void | init_fini (void) |
|
static void | inline_send (void) |
|
static void | inbulk_send (void) |
|
static void | inline__recv (uint32_t test_id, uint32_t len) |
|
static void | inline_recv (void) |
|
static void | inline_recv_unk (void) |
|
static void | inbulk_recv_unk (void) |
|
static void | inbulk_recv (void) |
|
◆ CLIENT_ENDPOINT_ADDR
#define CLIENT_ENDPOINT_ADDR "0@lo:12345:34:2" |
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
◆ SERVER_ENDPOINT_ADDR
#define SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" |
◆ atfom_phase
Enumerator |
---|
AT_LOAD | |
AT_LOAD_DONE | |
AT_REP_PREP | |
Definition at line 171 of file at_ut.c.
◆ at_fops_fini()
static void at_fops_fini |
( |
void |
| ) |
|
|
static |
◆ at_fops_init()
static void at_fops_init |
( |
void |
| ) |
|
|
static |
◆ atbuf_check()
◆ atdata_is_correct()
static bool atdata_is_correct |
( |
const struct m0_buf * |
buf, |
|
|
uint32_t |
len |
|
) |
| |
|
static |
◆ atfom_create()
◆ atfom_fini()
static void atfom_fini |
( |
struct m0_fom * |
fom0 | ) |
|
|
static |
◆ atfom_home_locality()
static size_t atfom_home_locality |
( |
const struct m0_fom * |
fom | ) |
|
|
static |
◆ atfom_tick()
static int atfom_tick |
( |
struct m0_fom * |
fom0 | ) |
|
|
static |
◆ atsvc_fini()
◆ atsvc_start()
◆ atsvc_stop()
◆ atsvc_type_allocate()
◆ atut__bufdata_alloc()
M0_INTERNAL void atut__bufdata_alloc |
( |
struct m0_buf * |
buf, |
|
|
size_t |
size, |
|
|
struct m0_rpc_machine * |
rmach |
|
) |
| |
◆ client_conn()
◆ client_start()
static void client_start |
( |
void |
| ) |
|
|
static |
◆ client_stop()
static void client_stop |
( |
void |
| ) |
|
|
static |
◆ fini()
static void fini |
( |
void |
| ) |
|
|
static |
◆ inbulk_recv()
static void inbulk_recv |
( |
void |
| ) |
|
|
static |
◆ inbulk_recv_unk()
static void inbulk_recv_unk |
( |
void |
| ) |
|
|
static |
◆ inbulk_send()
static void inbulk_send |
( |
void |
| ) |
|
|
static |
◆ init()
static void init |
( |
void |
| ) |
|
|
static |
◆ init_fini()
static void init_fini |
( |
void |
| ) |
|
|
static |
◆ inline__recv()
static void inline__recv |
( |
uint32_t |
test_id, |
|
|
uint32_t |
len |
|
) |
| |
|
static |
◆ inline_recv()
static void inline_recv |
( |
void |
| ) |
|
|
static |
◆ inline_recv_unk()
static void inline_recv_unk |
( |
void |
| ) |
|
|
static |
◆ inline_send()
static void inline_send |
( |
void |
| ) |
|
|
static |
◆ load_check()
static void load_check |
( |
uint32_t |
test_id, |
|
|
const struct m0_rpc_at_buf * |
ab, |
|
|
int |
result |
|
) |
| |
|
static |
◆ repbuf_fill()
static void repbuf_fill |
( |
uint32_t |
test_id, |
|
|
struct m0_buf * |
buf |
|
) |
| |
|
static |
◆ reply_check()
static void reply_check |
( |
uint32_t |
test_id, |
|
|
const struct m0_rpc_at_buf * |
ab, |
|
|
int |
result |
|
) |
| |
|
static |
◆ reply_is_necessary()
bool reply_is_necessary |
( |
uint32_t |
test_id | ) |
|
◆ reply_rc_check()
static void reply_rc_check |
( |
uint32_t |
test_id, |
|
|
const struct m0_rpc_at_buf * |
ab, |
|
|
int |
rc |
|
) |
| |
|
static |
◆ req_fini()
static void req_fini |
( |
void |
| ) |
|
|
static |
◆ req_send()
◆ reqbuf_check()
static void reqbuf_check |
( |
uint32_t |
test_id, |
|
|
const struct m0_buf * |
buf, |
|
|
int |
rc |
|
) |
| |
|
static |
◆ reqh_fini()
static void reqh_fini |
( |
void |
| ) |
|
|
static |
◆ reqh_init()
static void reqh_init |
( |
void |
| ) |
|
|
static |
◆ reqh_start()
static void reqh_start |
( |
void |
| ) |
|
|
static |
◆ reqh_stop()
static void reqh_stop |
( |
void |
| ) |
|
|
static |
◆ at_buf_size
◆ at_cctx
◆ at_seg_size
◆ at_sm_conf
Initial value:= {
.scf_name = "atfom",
}
static struct m0_sm_state_descr atfom_phases[]
Definition at line 426 of file at_ut.c.
◆ atbuf_rep_fopt
◆ atbuf_req_fopt
◆ atfom_ops
Initial value:= {
}
static int atfom_tick(struct m0_fom *fom0)
static size_t atfom_home_locality(const struct m0_fom *fom)
static void atfom_fini(struct m0_fom *fom0)
Definition at line 61 of file at_ut.c.
◆ atfom_phases
Initial value:= {
.sd_name = "load",
},
.sd_name = "load-done",
},
.sd_name = "prepare-reply",
},
}
Definition at line 177 of file at_ut.c.
◆ atfom_type_ops
Initial value:= {
}
static int atfom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
Definition at line 438 of file at_ut.c.
◆ atreqh
◆ atsvc
◆ atsvc_ops
Initial value:= {
}
static void atsvc_stop(struct m0_reqh_service *svc)
static int atsvc_start(struct m0_reqh_service *svc)
int m0_reqh_service_async_start_simple(struct m0_reqh_service_start_async_ctx *asc)
static void atsvc_fini(struct m0_reqh_service *svc)
Definition at line 73 of file at_ut.c.
◆ atsvc_type
Initial value:= {
.rst_name = "at_ut",
.rst_typecode = M0_CST_DS1
}
static const struct m0_reqh_service_type_ops atsvc_type_ops
Definition at line 108 of file at_ut.c.
◆ atsvc_type_ops
Initial value:= {
}
static int atsvc_type_allocate(struct m0_reqh_service **svc, const struct m0_reqh_service_type *stype)
Definition at line 104 of file at_ut.c.
◆ g_reqfop
◆ rpc_at_ut
Initial value:= {
.ts_name = "rpc-at",
.ts_owners = "Egor",
.ts_tests = {
}
}
static void inbulk_recv_unk(void)
static void inline_send(void)
static void inbulk_send(void)
static void inline_recv_unk(void)
static void inline_recv(void)
static void init_fini(void)
static void inbulk_recv(void)
Definition at line 752 of file at_ut.c.