Motr  M0
sd_common.c File Reference
#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"
Include dependency graph for sd_common.c:

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_chanrpc_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
 

Macro Definition Documentation

◆ LOG_FILE_NAME

#define LOG_FILE_NAME   "fdmi_sd_ut.errlog"

Definition at line 48 of file sd_common.c.

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FDMI

Definition at line 23 of file sd_common.c.

Function Documentation

◆ fdmi_serv_start_ut()

void fdmi_serv_start_ut ( const struct m0_filterc_ops filterc_ops)

Definition at line 66 of file sd_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdmi_serv_stop_ut()

void fdmi_serv_stop_ut ( void  )

Definition at line 121 of file sd_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdmi_ut_packet_send_failed()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepare_rpc_env()

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 
)
Todo:
Add prefix

Definition at line 171 of file sd_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_item_done()

static void test_item_done ( struct m0_rpc_packet *packet  M0_UNUSED,
struct m0_rpc_item item,
int  rc 
)
static

Definition at line 148 of file sd_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unprepare_rpc_env()

void unprepare_rpc_env ( struct test_rpc_env env)

Definition at line 241 of file sd_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_sd_ut

struct fdmi_sd_ut_ctx g_sd_ut

Definition at line 41 of file sd_common.c.

◆ md

struct m0_mdstore md
static

Definition at line 42 of file sd_common.c.

◆ sd_ut_lfile

FILE* sd_ut_lfile
static

Definition at line 50 of file sd_common.c.