Motr  M0
Test Console
Collaboration diagram for Test Console:

Data Structures

struct  m0_net_test_console_cfg
 
struct  m0_net_test_console_role_ctx
 
struct  m0_net_test_console_ctx
 

Functions

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

◆ 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: