Motr  M0
Collaboration diagram for Test Console:

Functions

static int console_role_init_fini (struct m0_net_test_console_role_ctx *ctx, struct m0_net_test_console_cfg *cfg, enum m0_net_test_role role)
 
static int console_init_fini (struct m0_net_test_console_ctx *ctx, struct m0_net_test_console_cfg *cfg)
 
int m0_net_test_console_init (struct m0_net_test_console_ctx *ctx, struct m0_net_test_console_cfg *cfg)
 
void m0_net_test_console_fini (struct m0_net_test_console_ctx *ctx)
 
static void console_cmd_init_fill (struct m0_net_test_console_cfg *cfg, enum m0_net_test_role role, struct m0_net_test_cmd_init *cinit)
 
static void status_data_reset (struct m0_net_test_cmd_status_data *sd)
 
static void status_data_add (struct m0_net_test_cmd_status_data *all_sd, const struct m0_net_test_cmd_status_data *cmd_sd)
 
size_t m0_net_test_console_cmd (struct m0_net_test_console_ctx *ctx, enum m0_net_test_role role, enum m0_net_test_cmd_type cmd_type)
 

Detailed Description

See also
Motr Network Benchmark

Function Documentation

◆ console_cmd_init_fill()

static void console_cmd_init_fill ( struct m0_net_test_console_cfg cfg,
enum m0_net_test_role  role,
struct m0_net_test_cmd_init cinit 
)
static

Definition at line 128 of file console.c.

Here is the caller graph for this function:

◆ console_init_fini()

static int console_init_fini ( struct m0_net_test_console_ctx ctx,
struct m0_net_test_console_cfg cfg 
)
static

Definition at line 100 of file console.c.

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

◆ console_role_init_fini()

static int console_role_init_fini ( struct m0_net_test_console_role_ctx ctx,
struct m0_net_test_console_cfg cfg,
enum m0_net_test_role  role 
)
static

Definition at line 44 of file console.c.

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

◆ m0_net_test_console_cmd()

size_t m0_net_test_console_cmd ( struct m0_net_test_console_ctx ctx,
enum m0_net_test_role  role,
enum m0_net_test_cmd_type  cmd_type 
)

Send command from console to the set of test nodes and wait for reply.

Parameters
ctxTest console context.
roleTest node role. Test console will send commands to nodes with this role only.
cmd_typeCommand type. Test console will create and send command with this type and wait for the corresponding reply type (for example, if cmd_type == M0_NET_TEST_CMD_INIT, then test console will wait for M0_NET_TEST_CMD_INIT_DONE reply).
Returns
number of successfully received replies for sent command.

Definition at line 228 of file console.c.

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

◆ m0_net_test_console_fini()

void m0_net_test_console_fini ( struct m0_net_test_console_ctx ctx)

Definition at line 122 of file console.c.

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

◆ m0_net_test_console_init()

int m0_net_test_console_init ( struct m0_net_test_console_ctx ctx,
struct m0_net_test_console_cfg cfg 
)

Definition at line 116 of file console.c.

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

◆ status_data_add()

static void status_data_add ( struct m0_net_test_cmd_status_data all_sd,
const struct m0_net_test_cmd_status_data cmd_sd 
)
static

Definition at line 178 of file console.c.

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

◆ status_data_reset()

static void status_data_reset ( struct m0_net_test_cmd_status_data sd)
static

Definition at line 151 of file console.c.

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