|
Motr
M0
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <sys/socket.h>#include <arpa/inet.h>#include <netdb.h>#include "motr/init.h"#include "lib/assert.h"#include "lib/errno.h"#include "lib/getopts.h"#include "lib/memory.h"#include "lib/misc.h"#include "lib/thread.h"#include "net/net.h"#include "net/bulk_mem.h"#include "ping.h"
Go to the source code of this file.
Data Structures | |
| struct | ping_xprt |
| struct | client_params |
Enumerations | |
| enum | { DEF_BUFS = 20, DEF_CLIENT_THREADS = 1, MAX_CLIENT_THREADS = 4196, DEF_LOOPS = 1, PING_CLIENT_SEGMENTS = 8, PING_CLIENT_SEGMENT_SIZE = 8192, PING_SERVER_SEGMENTS = 4, PING_SERVER_SEGMENT_SIZE = 16384, MEM_CLIENT_BASE_PORT = PING_PORT2, ONE_MILLION = 1000000ULL, SEC_PER_HR = 60 * 60, SEC_PER_MIN = 60 } |
Functions | |
| int | canon_host (const char *hostname, char *buf, size_t bufsiz) |
| int | lookup_xprt (const char *xprt_name, struct ping_xprt **xprt) |
| void | list_xprt_names (FILE *s, struct ping_xprt *def) |
| void | print_qstats (struct ping_ctx *ctx, bool reset) |
| int | quiet_printf (const char *fmt,...) |
| void | client (struct client_params *params) |
| int | main (int argc, char *argv[]) |
Variables | |
| struct ping_xprt | xprts [1] |
| struct ping_ctx | sctx |
| struct m0_mutex | qstats_mutex |
| struct ping_ops | verbose_ops |
| struct ping_ops | quiet_ops |
| anonymous enum |
| int canon_host | ( | const char * | hostname, |
| char * | buf, | ||
| size_t | bufsiz | ||
| ) |
| void client | ( | struct client_params * | params | ) |
| void list_xprt_names | ( | FILE * | s, |
| struct ping_xprt * | def | ||
| ) |
| int lookup_xprt | ( | const char * | xprt_name, |
| struct ping_xprt ** | xprt | ||
| ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| void print_qstats | ( | struct ping_ctx * | ctx, |
| bool | reset | ||
| ) |
| struct ping_ops quiet_ops |
| struct ping_ctx sctx |
| struct ping_ops verbose_ops |
| struct ping_xprt xprts[1] |