Motr  M0
m0lnetping_main.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/inet.h>
#include "lib/memory.h"
#include "lib/misc.h"
#include "net/net.h"
#include "net/lnet/lnet.h"
#include "net/lnet/st/ping.h"
Include dependency graph for m0lnetping_main.c:

Go to the source code of this file.

Macros

#define CPARAM_SET(f)   params[i].f = f
 

Functions

 module_param (quiet, bool, S_IRUGO)
 
 MODULE_PARM_DESC (quiet, "quiet mode")
 
 module_param (verbose, int, S_IRUGO)
 
 MODULE_PARM_DESC (verbose, "verbosity level")
 
 module_param (client_only, bool, S_IRUGO)
 
 MODULE_PARM_DESC (verbose, "run client only")
 
 module_param (server_only, bool, S_IRUGO)
 
 MODULE_PARM_DESC (server_only, "run server only")
 
 module_param (async_events, bool, S_IRUGO)
 
 MODULE_PARM_DESC (async_events, "async event processing (old style)")
 
 module_param (nr_bufs, uint, S_IRUGO)
 
 MODULE_PARM_DESC (nr_bufs, "total number of network buffers to allocate")
 
 module_param (nr_recv_bufs, uint, S_IRUGO)
 
 MODULE_PARM_DESC (nr_recv_bufs, "number of receive buffers (server only)")
 
 module_param (bulk_size, charp, S_IRUGO)
 
 MODULE_PARM_DESC (bulk_size, "bulk data size")
 
 module_param (active_bulk_delay, int, S_IRUGO)
 
 MODULE_PARM_DESC (active_bulk_delay, "Delay before sending active receive")
 
 module_param (nr_clients, int, S_IRUGO)
 
 MODULE_PARM_DESC (nr_clients, "number of client threads")
 
 module_param (loops, int, S_IRUGO)
 
 MODULE_PARM_DESC (loops, "loops to run")
 
 module_param (bulk_timeout, int, S_IRUGO)
 
 MODULE_PARM_DESC (bulk_timeout, "bulk timeout")
 
 module_param (msg_timeout, int, S_IRUGO)
 
 MODULE_PARM_DESC (msg_timeout, "message timeout")
 
 module_param (client_network, charp, S_IRUGO)
 
 MODULE_PARM_DESC (client_network, "client network interface (ip@intf)")
 
 module_param (client_portal, int, S_IRUGO)
 
 MODULE_PARM_DESC (client_portal, "client portal (optional)")
 
 module_param (client_tmid, int, S_IRUGO)
 
 MODULE_PARM_DESC (client_tmid, "client base TMID (optional)")
 
 module_param (server_network, charp, S_IRUGO)
 
 MODULE_PARM_DESC (server_network, "server network interface (ip@intf)")
 
 module_param (server_portal, int, S_IRUGO)
 
 MODULE_PARM_DESC (server_portal, "server portal (optional)")
 
 module_param (server_tmid, int, S_IRUGO)
 
 MODULE_PARM_DESC (server_tmid, "server TMID (optional)")
 
 module_param (server_min_recv_size, int, S_IRUGO)
 
 MODULE_PARM_DESC (server_min_recv_size, "server min receive size (optional)")
 
 module_param (server_max_recv_msgs, int, S_IRUGO)
 
 MODULE_PARM_DESC (server_max_recv_msgs, "server max receive msgs (optional)")
 
 module_param (send_msg_size, int, S_IRUGO)
 
 MODULE_PARM_DESC (send_msg_size, "client message size (optional)")
 
 module_param (server_debug, int, S_IRUGO)
 
 MODULE_PARM_DESC (server_debug, "server debug (optional)")
 
 module_param (client_debug, int, S_IRUGO)
 
 MODULE_PARM_DESC (client_debug, "client debug (optional)")
 
static int quiet_printk (const char *fmt,...)
 
static int verbose_printk (const char *fmt,...)
 
static int __init m0_netst_init_k (void)
 
static void __exit m0_netst_fini_k (void)
 

Variables

static bool quiet = false
 
static int verbose = 0
 
static bool client_only = false
 
static bool server_only = false
 
static bool async_events = false
 
static uint nr_bufs = PING_DEF_BUFS
 
static uint nr_recv_bufs = 0
 
static char * bulk_size = NULL
 
static int active_bulk_delay = 0
 
static int nr_clients = PING_DEF_CLIENT_THREADS
 
static int loops = PING_DEF_LOOPS
 
static int bulk_timeout = PING_DEF_BULK_TIMEOUT
 
static int msg_timeout = PING_DEF_MSG_TIMEOUT
 
static char * client_network = NULL
 
static int client_portal = -1
 
static int client_tmid = PING_CLIENT_DYNAMIC_TMID
 
static char * server_network = NULL
 
static int server_portal = -1
 
static int server_tmid = -1
 
static int server_min_recv_size = -1
 
static int server_max_recv_msgs = -1
 
static int send_msg_size = -1
 
static int server_debug = 0
 
static int client_debug = 0
 
static struct nlx_ping_ops verbose_ops
 
static struct nlx_ping_ops quiet_ops
 
static struct nlx_ping_ctx sctx
 
static struct m0_thread server_thread
 
static struct m0_threadclient_thread
 
static struct nlx_ping_client_paramsparams
 

Macro Definition Documentation

◆ CPARAM_SET

#define CPARAM_SET (   f)    params[i].f = f