Motr  M0
Test Node Internals
Collaboration diagram for Test Node Internals:

Enumerations

enum  { NODE_WAIT_CMD_GRANULARITY_MS = 20 }
 

Functions

static struct m0_net_test_service_opsservice_ops_get (struct m0_net_test_cmd *cmd)
 
static int node_cmd_get (struct m0_net_test_cmd_ctx *cmd_ctx, struct m0_net_test_cmd *cmd, m0_time_t deadline)
 
static int node_cmd_wait (struct m0_net_test_node_ctx *ctx, struct m0_net_test_cmd *cmd, enum m0_net_test_cmd_type type)
 
static void node_thread (struct m0_net_test_node_ctx *ctx)
 
static int node_init_fini (struct m0_net_test_node_ctx *ctx, struct m0_net_test_node_cfg *cfg)
 
int m0_net_test_node_init (struct m0_net_test_node_ctx *ctx, struct m0_net_test_node_cfg *cfg)
 
void m0_net_test_node_fini (struct m0_net_test_node_ctx *ctx)
 
int m0_net_test_node_start (struct m0_net_test_node_ctx *ctx)
 
void m0_net_test_node_stop (struct m0_net_test_node_ctx *ctx)
 
int m0_net_test_node_module_initfini (struct m0_net_test_node_cfg *cfg)
 

Variables

static struct m0_net_test_node_ctxm0_net_test_node_module_ctx = NULL
 

Detailed Description

See also
Motr Network Benchmark

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NODE_WAIT_CMD_GRANULARITY_MS 

Definition at line 719 of file node.c.

Function Documentation

◆ m0_net_test_node_fini()

void m0_net_test_node_fini ( struct m0_net_test_node_ctx ctx)

Finalize node data structures.

See also
Logical Specification

Definition at line 915 of file node.c.

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

◆ m0_net_test_node_init()

int m0_net_test_node_init ( struct m0_net_test_node_ctx ctx,
struct m0_net_test_node_cfg cfg 
)

Initialize node data structures.

Parameters
ctxnode context.
cfgnode configuration.
See also
Logical Specification
Note
ctx->ntnc_cfg should be set and should not be changed after m0_net_test_node_init().

Definition at line 909 of file node.c.

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

◆ m0_net_test_node_module_initfini()

int m0_net_test_node_module_initfini ( struct m0_net_test_node_cfg cfg)

Helper for kernel module node. This function is M0_EXPORTED, so it can be called from m0nettest.ko.

Parameters
cfgnode configuration. Call with NULL value to finalize.

Definition at line 954 of file node.c.

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

◆ m0_net_test_node_start()

int m0_net_test_node_start ( struct m0_net_test_node_ctx ctx)

Start test node.

See also
Logical Specification

Definition at line 921 of file node.c.

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

◆ m0_net_test_node_stop()

void m0_net_test_node_stop ( struct m0_net_test_node_ctx ctx)

Stop test node.

See also
Logical Specification

Definition at line 932 of file node.c.

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

◆ node_cmd_get()

static int node_cmd_get ( struct m0_net_test_cmd_ctx cmd_ctx,
struct m0_net_test_cmd cmd,
m0_time_t  deadline 
)
static

Definition at line 740 of file node.c.

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

◆ node_cmd_wait()

static int node_cmd_wait ( struct m0_net_test_node_ctx ctx,
struct m0_net_test_cmd cmd,
enum m0_net_test_cmd_type  type 
)
static
Todo:
add retry count

Definition at line 757 of file node.c.

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

◆ node_init_fini()

static int node_init_fini ( struct m0_net_test_node_ctx ctx,
struct m0_net_test_node_cfg cfg 
)
static

Definition at line 872 of file node.c.

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

◆ node_thread()

static void node_thread ( struct m0_net_test_node_ctx ctx)
static

Definition at line 778 of file node.c.

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

◆ service_ops_get()

static struct m0_net_test_service_ops* service_ops_get ( struct m0_net_test_cmd cmd)
static

Definition at line 724 of file node.c.

Here is the caller graph for this function:

Variable Documentation

◆ m0_net_test_node_module_ctx

struct m0_net_test_node_ctx* m0_net_test_node_module_ctx = NULL
static

Definition at line 952 of file node.c.