|
Motr
M0
|
Macros | |
| #define | LOG_PREFIX "utils:" |
| #define | NN 312 |
| #define | MM 156 |
| #define | MATRIX_A 0xB5026F5AA96619E9ULL |
| #define | UM 0xFFFFFFFF80000000ULL /* Most significant 33 bits */ |
| #define | LM 0x7FFFFFFFULL /* Least significant 31 bits */ |
Typedefs | |
| typedef unsigned long long | bcnt_t |
Functions | |
| struct m0_realm * | crate_uber_realm () |
| int | adopt_motr_thread (struct m0_workload_task *task) |
| void | release_motr_thread (struct m0_workload_task *task) |
| static void | dix_config_init (struct m0_idx_dix_config *conf) |
| int | init (struct workload *w) |
| void | free_m0_conf () |
| int | fini (struct workload *w) |
| void | check (struct workload *w) |
| unsigned char * | calc_md5sum (char *buffer, int blocksize) |
| void | init_genrand64 (unsigned long long seed) |
| void | init_by_array64 (unsigned long long init_key[], unsigned long long key_length, unsigned long long seed) |
| unsigned long long | genrand64_int64 (void) |
| long long | genrand64_int63 (void) |
| double | genrand64_real1 (void) |
| double | genrand64_real2 (void) |
| double | genrand64_real3 (void) |
| void | init_rand_generator (unsigned long long seed) |
| int | generate_fid (int seed, unsigned long *low, unsigned long *high) |
| void | timeval_diff (const struct timeval *start, const struct timeval *end, struct timeval *diff) |
| void | timeval_add (struct timeval *sum, struct timeval *term) |
| void | timeval_sub (struct timeval *end, struct timeval *start) |
| double | tsec (const struct timeval *tval) |
| double | rate (bcnt_t items, const struct timeval *tval, int scale) |
| unsigned long long | getnum (const char *str, const char *msg) |
| void | timeval_norm (struct timeval *t) |
Variables | |
| struct crate_conf * | conf = NULL |
| struct m0_config | m0_conf = {} |
| struct m0_idx_cass_config | cass_conf = {} |
| static int | num_m0_workloads = 0 |
| struct m0_client * | m0_instance = NULL |
| struct m0_container | container = {} |
| static struct m0_realm | uber_realm = {} |
| static struct m0_idx_dix_config | dix_conf = {} |
| struct m0_client * | m0_instance |
| static unsigned long long | mt [NN] |
| static int | mti = NN+1 |
| #define LM 0x7FFFFFFFULL /* Least significant 31 bits */ |
Definition at line 64 of file crate_utils.c.
| #define LOG_PREFIX "utils:" |
Definition at line 36 of file crate_client_utils.c.
| #define MATRIX_A 0xB5026F5AA96619E9ULL |
Definition at line 62 of file crate_utils.c.
| #define MM 156 |
Definition at line 61 of file crate_utils.c.
| #define NN 312 |
Definition at line 60 of file crate_utils.c.
| #define UM 0xFFFFFFFF80000000ULL /* Most significant 33 bits */ |
Definition at line 63 of file crate_utils.c.
| typedef unsigned long long bcnt_t |
Definition at line 44 of file crate_utils.h.
| int adopt_motr_thread | ( | struct m0_workload_task * | task | ) |
Definition at line 53 of file crate_client_utils.c.


| unsigned char * calc_md5sum | ( | char * | buffer, |
| int | blocksize | ||
| ) |
Definition at line 53 of file crate_utils.c.
| void check | ( | struct workload * | w | ) |
| struct m0_realm * crate_uber_realm | ( | ) |
|
static |
| int fini | ( | struct workload * | w | ) |
Definition at line 161 of file crate_client_utils.c.


| void free_m0_conf | ( | ) |
Definition at line 150 of file crate_client_utils.c.


| int generate_fid | ( | int | seed, |
| unsigned long * | low, | ||
| unsigned long * | high | ||
| ) |
| long long genrand64_int63 | ( | void | ) |
| unsigned long long genrand64_int64 | ( | void | ) |
Definition at line 112 of file crate_utils.c.


| double genrand64_real1 | ( | void | ) |
| double genrand64_real2 | ( | void | ) |
| double genrand64_real3 | ( | void | ) |
| unsigned long long getnum | ( | const char * | str, |
| const char * | msg | ||
| ) |
Definition at line 222 of file crate_utils.c.


| int init | ( | struct workload * | w | ) |
Definition at line 81 of file crate_client_utils.c.


| void init_by_array64 | ( | unsigned long long | init_key[], |
| unsigned long long | key_length, | ||
| unsigned long long | seed | ||
| ) |
Definition at line 83 of file crate_utils.c.


| void init_genrand64 | ( | unsigned long long | seed | ) |
| void init_rand_generator | ( | unsigned long long | seed | ) |
| double rate | ( | bcnt_t | items, |
| const struct timeval * | tval, | ||
| int | scale | ||
| ) |
Definition at line 217 of file crate_utils.c.


| void release_motr_thread | ( | struct m0_workload_task * | task | ) |
Definition at line 71 of file crate_client_utils.c.


| void timeval_add | ( | struct timeval * | sum, |
| struct timeval * | term | ||
| ) |
Definition at line 198 of file crate_utils.c.


| void timeval_diff | ( | const struct timeval * | start, |
| const struct timeval * | end, | ||
| struct timeval * | diff | ||
| ) |
Definition at line 189 of file crate_utils.c.


| void timeval_norm | ( | struct timeval * | t | ) |
| void timeval_sub | ( | struct timeval * | end, |
| struct timeval * | start | ||
| ) |
Definition at line 205 of file crate_utils.c.


| double tsec | ( | const struct timeval * | tval | ) |
| struct m0_idx_cass_config cass_conf = {} |
Definition at line 40 of file crate_client_utils.c.
| struct crate_conf* conf = NULL |
Definition at line 38 of file crate_client_utils.c.
| struct m0_container container = {} |
Definition at line 43 of file crate_client_utils.c.
|
static |
Definition at line 45 of file crate_client_utils.c.
| struct m0_config m0_conf = {} |
Definition at line 39 of file crate_client_utils.c.
| struct m0_client* m0_instance |
Definition at line 42 of file crate_client_utils.c.
| struct m0_client* m0_instance = NULL |
Definition at line 42 of file crate_client_utils.c.
|
static |
Definition at line 67 of file crate_utils.c.
|
static |
Definition at line 70 of file crate_utils.c.
|
static |
Definition at line 41 of file crate_client_utils.c.
|
static |
Definition at line 44 of file crate_client_utils.c.