Motr
M0
|
Go to the source code of this file.
Data Structures | |
struct | nlx_ping_ops |
struct | nlx_ping_ctx |
struct | nlx_ping_client_params |
Macros | |
#define | __MOTR_NET_LNET_PING_H__ |
#define | PING_ERR(fmt, ...) fprintf(stderr, fmt , ## __VA_ARGS__) |
#define | PING_OUT(ctx, num, fmt, ...) |
Enumerations | |
enum | { PING_CLIENT_PORTAL = 39, PING_CLIENT_DYNAMIC_TMID = -1, PING_SERVER_PORTAL = 39, PING_SERVER_TMID = 12, PING_DEF_BUFS = 20, PING_MIN_BUFS = 4, PING_DEF_CLIENT_THREADS = 1, PING_MAX_CLIENT_THREADS = 32, PING_DEF_LOOPS = 1, PING_DEF_MSG_TIMEOUT = 5, PING_DEF_BULK_TIMEOUT = 10, PING_SEGMENT_SIZE = 4096, PING_SEGMENT_SHIFT = 12, PING_MAX_SEGMENTS = 256, PING_MAX_BUFFER_SIZE = PING_MAX_SEGMENTS * PING_SEGMENT_SIZE, PING_DEF_SEGMENTS = 8, PING_DEF_BUFFER_SIZE = PING_DEF_SEGMENTS * PING_SEGMENT_SIZE, PING_MSG_OVERHEAD = 2, PING_DEF_MIN_RECV_SIZE = 100, ONE_MILLION = 1000000ULL, SEC_PER_HR = 60 * 60, SEC_PER_MIN = 60 } |
Functions | |
void | nlx_ping_server_spawn (struct m0_thread *server_thread, struct nlx_ping_ctx *sctx) |
void | nlx_ping_server_should_stop (struct nlx_ping_ctx *ctx) |
void | nlx_ping_client (struct nlx_ping_client_params *params) |
void | nlx_ping_print_qstats_tm (struct nlx_ping_ctx *ctx, bool reset) |
int | nlx_ping_print_qstats_total (const char *ident, const struct nlx_ping_ops *ops) |
uint64_t | nlx_ping_parse_uint64 (const char *s) |
void | nlx_ping_init (void) |
void | nlx_ping_fini (void) |
anonymous enum |
void nlx_ping_client | ( | struct nlx_ping_client_params * | params | ) |
void nlx_ping_fini | ( | void | ) |
void nlx_ping_init | ( | void | ) |
uint64_t nlx_ping_parse_uint64 | ( | const char * | s | ) |
void nlx_ping_print_qstats_tm | ( | struct nlx_ping_ctx * | ctx, |
bool | reset | ||
) |
int nlx_ping_print_qstats_total | ( | const char * | ident, |
const struct nlx_ping_ops * | ops | ||
) |
void nlx_ping_server_should_stop | ( | struct nlx_ping_ctx * | ctx | ) |
void nlx_ping_server_spawn | ( | struct m0_thread * | server_thread, |
struct nlx_ping_ctx * | sctx | ||
) |