Motr
M0
|
#include "lib/trace.h"
#include "lib/string.h"
#include "ut/ut.h"
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
#include "fdmi/fdmi.h"
#include "fdmi/service.h"
#include "mdstore/mdstore.h"
#include "rpc/rpc_machine_internal.h"
#include "rpc/packet_internal.h"
#include "rpc/item_internal.h"
#include "rpc/session_internal.h"
#include "rpc/conn_internal.h"
#include "fdmi/ut/sd_common.h"
Go to the source code of this file.
Macros | |
#define | M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FDMI |
#define | LOG_FILE_NAME "fdmi_sd_ut.errlog" |
Functions | |
M0_INTERNAL struct m0_rpc_chan * | rpc_chan_get (struct m0_rpc_machine *machine, struct m0_net_end_point *dest_ep, uint64_t max_rpcs_in_flight) |
M0_INTERNAL void | rpc_chan_put (struct m0_rpc_chan *chan) |
void | fdmi_serv_start_ut (const struct m0_filterc_ops *filterc_ops) |
void | fdmi_serv_stop_ut (void) |
static void | test_item_done (struct m0_rpc_packet *packet M0_UNUSED, struct m0_rpc_item *item, int rc) |
void | fdmi_ut_packet_send_failed (struct m0_rpc_machine *mach, struct m0_rpc_packet *p) |
void | prepare_rpc_env (struct test_rpc_env *env, struct m0_reqh *reqh, const struct m0_rpc_frm_ops *frm_ops, bool sender, struct m0_rpc_conn *rpc_conn, struct m0_rpc_session *rpc_session) |
void | unprepare_rpc_env (struct test_rpc_env *env) |
Variables | |
struct fdmi_sd_ut_ctx | g_sd_ut |
static struct m0_mdstore | md |
static FILE * | sd_ut_lfile |
#define LOG_FILE_NAME "fdmi_sd_ut.errlog" |
Definition at line 48 of file sd_common.c.
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FDMI |
Definition at line 23 of file sd_common.c.
void fdmi_serv_start_ut | ( | const struct m0_filterc_ops * | filterc_ops | ) |
Definition at line 66 of file sd_common.c.
void fdmi_serv_stop_ut | ( | void | ) |
Definition at line 121 of file sd_common.c.
void fdmi_ut_packet_send_failed | ( | struct m0_rpc_machine * | mach, |
struct m0_rpc_packet * | p | ||
) |
Definition at line 154 of file sd_common.c.
void prepare_rpc_env | ( | struct test_rpc_env * | env, |
struct m0_reqh * | reqh, | ||
const struct m0_rpc_frm_ops * | frm_ops, | ||
bool | sender, | ||
struct m0_rpc_conn * | rpc_conn, | ||
struct m0_rpc_session * | rpc_session | ||
) |
Definition at line 171 of file sd_common.c.
|
static |
Definition at line 148 of file sd_common.c.
void unprepare_rpc_env | ( | struct test_rpc_env * | env | ) |
Definition at line 241 of file sd_common.c.
struct fdmi_sd_ut_ctx g_sd_ut |
Definition at line 41 of file sd_common.c.
|
static |
Definition at line 42 of file sd_common.c.
|
static |
Definition at line 50 of file sd_common.c.