Motr
M0
|
#include "lib/trace.h"
#include "lib/misc.h"
#include "ut/misc.h"
#include "ut/ut.h"
#include "iscservice/isc.h"
#include "iscservice/isc_service.h"
#include "iscservice/ut/common.h"
#include "lib/finject.h"
#include "rpc/rpclib.h"
#include "rpc/ut/at/at_ut.h"
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | remote_invoke_var |
struct | visitor_entry |
struct | comp_req_aux |
Macros | |
#define | M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
#define | SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" |
#define | SERVER_ENDPOINT M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR |
#define | CLIENT_ENDPOINT_ADDR "0@lo:12345:34:2" |
#define | F_CONT 0x12345 |
#define | BARRIER_CNT 2 |
Enumerations | |
enum | funct_type { FT_NEITHER_IO, FT_NO_INPUT, FT_NO_OUTPUT, FT_BOTH_IO } |
enum | concc_type { CT_SAME_FID, CT_DIFF_FID } |
enum | buf_type { BT_INLINE, BT_INBULK } |
enum | fop_processing_phase { FPP_SEND, FPP_REPLY_PROCESS, FPP_COMPLETE, FPP_INVALID } |
Functions | |
static void | req_fop_prepare (struct m0_fop *req_fop, uint32_t buf_type, struct m0_fid *fid, uint32_t f_type) |
static void | isc_item_cb (struct m0_rpc_item *item) |
static void | fid_get (const char *f_name, struct m0_fid *fid) |
int | isc_ut_server_start (void) |
static void | isc_ut_server_stop (void) |
static void | isc_ut_client_start (void) |
static void | isc_ut_client_stop () |
static int | null_computation (struct m0_buf *in, struct m0_buf *out, struct m0_isc_comp_private *comp_data, int *rc) |
static struct m0_rpc_machine * | fom_rmach (const struct m0_fom *fom) |
static int | string_update (struct m0_buf *in, struct m0_buf *out, struct m0_isc_comp_private *comp_data, int *rc) |
static int | strguess (struct m0_buf *in, struct m0_buf *out, struct m0_isc_comp_private *comp_data, int *rc) |
static void | comp_launch (void *args) |
static void | vis_entry_init (uint32_t barrier_cnt) |
static void | vis_entry_fini (void) |
static int | barrier (struct m0_buf *in, struct m0_buf *out, struct m0_isc_comp_private *comp_data, int *rc) |
static void | local_invocation (struct m0_isc_comp_req *comp_req, struct m0_fid *fid, int exp_rc) |
static void | comp_req_init (void *arg, int tid) |
static void | test_comp_launch (void) |
static void | test_local_err_path (void) |
static void | test_comp_state (void) |
static uint32_t | remote_invocation_async (struct m0_fid *fid, int exp_rc, uint32_t buf_type, uint32_t phase, struct m0_fop **arg_fop) |
static void | ret_codes_precond (int exp_rc, uint32_t buf_type, struct m0_fid *fid) |
static void | ret_codes_postcond (int exp_rc, void *arg) |
static void | remote_invocation (struct m0_fid *fid, int exp_rc, uint32_t f_type, uint32_t buf_type) |
static uint32_t | expected_output (uint32_t f_type) |
static void | comp_remote_invoke (struct comp_req_aux *cra, uint32_t f_type) |
static void | test_comp_signature (void) |
static void | test_remote_waiting (void) |
static void | test_remote_err_path (void) |
Variables | |
static struct m0_reqh_service * | iscs |
static struct m0_rpc_server_ctx | isc_ut_sctx |
static struct m0_rpc_client_ctx | isc_ut_cctx |
static struct m0_net_domain | isc_ut_client_ndom |
static uint32_t | cc_type |
static const char * | SERVER_LOGFILE = "isc_ut.log" |
char * | isc_ut_server_args [] |
struct remote_invoke_var | remote_call_info |
static const struct m0_rpc_item_ops | isc_item_ops |
struct visitor_entry | vis_ent |
static int | ret_codes [] |
struct comp_req_aux | cra |
char * | fixed_str = "abcdefgh" |
struct m0_ut_suite | isc_service_ut |
#define BARRIER_CNT 2 |
Definition at line 39 of file service_ut.c.
#define CLIENT_ENDPOINT_ADDR "0@lo:12345:34:2" |
Definition at line 37 of file service_ut.c.
#define F_CONT 0x12345 |
Definition at line 38 of file service_ut.c.
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
Definition at line 21 of file service_ut.c.
#define SERVER_ENDPOINT M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR |
Definition at line 36 of file service_ut.c.
#define SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" |
Definition at line 35 of file service_ut.c.
enum buf_type |
Enumerator | |
---|---|
BT_INLINE | |
BT_INBULK |
Definition at line 111 of file service_ut.c.
enum concc_type |
Enumerator | |
---|---|
CT_SAME_FID | |
CT_DIFF_FID |
Definition at line 105 of file service_ut.c.
enum fop_processing_phase |
Enumerator | |
---|---|
FPP_SEND | |
FPP_REPLY_PROCESS | |
FPP_COMPLETE | |
FPP_INVALID |
Definition at line 539 of file service_ut.c.
enum funct_type |
Enumerator | |
---|---|
FT_NEITHER_IO | |
FT_NO_INPUT | |
FT_NO_OUTPUT | |
FT_BOTH_IO |
Definition at line 90 of file service_ut.c.
|
static |
Definition at line 288 of file service_ut.c.
|
static |
Definition at line 256 of file service_ut.c.
|
static |
Definition at line 796 of file service_ut.c.
|
static |
Definition at line 329 of file service_ut.c.
|
static |
|
static |
Definition at line 135 of file service_ut.c.
|
static |
|
static |
|
static |
Definition at line 172 of file service_ut.c.
|
static |
Definition at line 193 of file service_ut.c.
int isc_ut_server_start | ( | void | ) |
Definition at line 142 of file service_ut.c.
|
static |
Definition at line 164 of file service_ut.c.
|
static |
Definition at line 311 of file service_ut.c.
|
static |
|
static |
Definition at line 718 of file service_ut.c.
|
static |
Definition at line 546 of file service_ut.c.
|
static |
Definition at line 598 of file service_ut.c.
|
static |
Definition at line 688 of file service_ut.c.
|
static |
Definition at line 654 of file service_ut.c.
|
static |
Definition at line 245 of file service_ut.c.
|
static |
Definition at line 215 of file service_ut.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 277 of file service_ut.c.
|
static |
Definition at line 269 of file service_ut.c.
|
static |
Definition at line 45 of file service_ut.c.
struct comp_req_aux cra |
char* fixed_str = "abcdefgh" |
Definition at line 133 of file service_ut.c.
|
static |
Definition at line 83 of file service_ut.c.
struct m0_ut_suite isc_service_ut |
Definition at line 940 of file service_ut.c.
|
static |
Definition at line 43 of file service_ut.c.
|
static |
Definition at line 44 of file service_ut.c.
|
static |
Definition at line 42 of file service_ut.c.
char* isc_ut_server_args[] |
Definition at line 47 of file service_ut.c.
|
static |
Definition at line 41 of file service_ut.c.
struct remote_invoke_var remote_call_info |
|
static |
Definition at line 123 of file service_ut.c.
|
static |
Definition at line 46 of file service_ut.c.
struct visitor_entry vis_ent |