Go to the source code of this file.
|
| static m0_time_t | timeout_get (void) |
| |
| static m0_time_t | timeout_get_abs (void) |
| |
| static int | make_addr (char *s, size_t s_len, int svc_id, bool add_comma) |
| |
| static void | fill_addr (uint32_t nr) |
| |
| static bool | commands_ut_assert (struct net_test_cmd_node *node, bool value) |
| |
| static void | barrier_init (struct net_test_cmd_node *node) |
| |
| static void | barrier_fini (struct net_test_cmd_node *node) |
| |
| static void | barrier_with_main (struct net_test_cmd_node *node) |
| |
| static void | barrier_with_nodes (void) |
| |
| static void | barrier_disable (struct net_test_cmd_node *node) |
| |
| static void | flags_reset (size_t nr) |
| |
| static void | flag_set (int index) |
| |
| static bool | is_flags_set (size_t nr, bool set) |
| |
| static bool | is_flags_set_odd (size_t nr) |
| |
| static void | commands_ut_send (struct net_test_cmd_node *node, struct m0_net_test_cmd_ctx *ctx) |
| |
| static void | commands_ut_recv (struct net_test_cmd_node *node, struct m0_net_test_cmd_ctx *ctx, m0_time_t deadline, ssize_t *ep_index) |
| |
| static void | commands_ut_recv_type (struct net_test_cmd_node *node, struct m0_net_test_cmd_ctx *ctx, m0_time_t deadline, enum m0_net_test_cmd_type type) |
| |
| static void | commands_node_thread (struct net_test_cmd_node *node) |
| |
| static void | send_all (size_t nr, struct m0_net_test_cmd *cmd) |
| |
| static void | commands_ut_send_all (size_t nr) |
| |
| static void | commands_ut_send_all_type (size_t nr, enum m0_net_test_cmd_type type) |
| |
| static void | commands_ut_recv_all (size_t nr, m0_time_t deadline) |
| |
| static void | net_test_command_ut (size_t nr) |
| |
| void | m0_net_test_cmd_ut_single (void) |
| |
| void | m0_net_test_cmd_ut_multiple (void) |
| |
| static void | commands_node_loop (struct net_test_cmd_node *node, struct m0_net_test_cmd *cmd) |
| |
| static void | commands_console_loop (struct net_test_cmd_node *node, struct m0_net_test_cmd *cmd) |
| |
| static void | commands_node_thread2 (struct net_test_cmd_node *node) |
| |
| void | m0_net_test_cmd_ut_multiple2 (void) |
| |
◆ anonymous enum
| Enumerator |
|---|
| NTC_TMID_START | |
| NTC_TMID_CONSOLE | |
| NTC_TMID_NODE | |
| NTC_MULTIPLE_NODES | |
| NTC_MULTIPLE_COMMANDS | |
| NTC_ADDR_LEN_MAX | |
| NTC_TIMEOUT_MS | |
| NTC_CMD_RECV_WAIT_NS | |
Definition at line 34 of file commands.c.
◆ barrier_disable()
Called from the node threads.
Definition at line 189 of file commands.c.
◆ barrier_fini()
◆ barrier_init()
Called from the main thread
Definition at line 134 of file commands.c.
◆ barrier_with_main()
◆ barrier_with_nodes()
| static void barrier_with_nodes |
( |
void |
| ) |
|
|
static |
◆ commands_console_loop()
◆ commands_node_loop()
◆ commands_node_thread()
◆ commands_node_thread2()
◆ commands_ut_assert()
◆ commands_ut_recv()
◆ commands_ut_recv_all()
| static void commands_ut_recv_all |
( |
size_t |
nr, |
|
|
m0_time_t |
deadline |
|
) |
| |
|
static |
◆ commands_ut_recv_type()
◆ commands_ut_send()
◆ commands_ut_send_all()
| static void commands_ut_send_all |
( |
size_t |
nr | ) |
|
|
static |
◆ commands_ut_send_all_type()
◆ fill_addr()
| static void fill_addr |
( |
uint32_t |
nr | ) |
|
|
static |
Fill addr_console and addr_node strings.
Definition at line 101 of file commands.c.
◆ flag_set()
| static void flag_set |
( |
int |
index | ) |
|
|
static |
◆ flags_reset()
| static void flags_reset |
( |
size_t |
nr | ) |
|
|
static |
◆ is_flags_set()
| static bool is_flags_set |
( |
size_t |
nr, |
|
|
bool |
set |
|
) |
| |
|
static |
◆ is_flags_set_odd()
| static bool is_flags_set_odd |
( |
size_t |
nr | ) |
|
|
static |
◆ m0_net_test_cmd_ut_multiple()
| void m0_net_test_cmd_ut_multiple |
( |
void |
| ) |
|
◆ m0_net_test_cmd_ut_multiple2()
| void m0_net_test_cmd_ut_multiple2 |
( |
void |
| ) |
|
◆ m0_net_test_cmd_ut_single()
| void m0_net_test_cmd_ut_single |
( |
void |
| ) |
|
◆ make_addr()
| static int make_addr |
( |
char * |
s, |
|
|
size_t |
s_len, |
|
|
int |
svc_id, |
|
|
bool |
add_comma |
|
) |
| |
|
static |
◆ net_test_command_ut()
| static void net_test_command_ut |
( |
size_t |
nr | ) |
|
|
static |
◆ send_all()
◆ timeout_get()
◆ timeout_get_abs()
◆ addr_console
◆ addr_node
◆ console
◆ node
◆ nodes
◆ NTC_ADDR
| const char NTC_ADDR[] = "0@lo:12345:42:%d" |
|
static |
◆ NTC_ADDR_LEN
◆ NTC_DELIM
| const char NTC_DELIM = ',' |
|
static |
◆ slist_console
◆ slist_node