25 #ifndef __MOTR_M0CRATE_CRATE_UTILS_H__ 26 #define __MOTR_M0CRATE_CRATE_UTILS_H__ 31 #include <sys/types.h> 45 unsigned long long getnum(
const char *str,
const char *msg);
51 struct timeval *
diff);
54 double tsec(
const struct timeval *tval);
55 double rate(
bcnt_t items,
const struct timeval *tval,
int scale);
static int(* diff[M0_PARITY_CAL_ALGO_NR])(struct m0_parity_math *math, struct m0_buf *old, struct m0_buf *new, struct m0_buf *parity, uint32_t index)
double tsec(const struct timeval *tval)
unsigned char * calc_md5sum(char *buffer, int blocksize)
void timeval_norm(struct timeval *t)
static void low(struct m0_net_buffer_pool *bp)
double rate(bcnt_t items, const struct timeval *tval, int scale)
void init_rand_generator(unsigned long long seed)
unsigned long long getnum(const char *str, const char *msg)
unsigned long long genrand64_int64(void)
void timeval_sub(struct timeval *end, struct timeval *start)
static struct m0_thread t[8]
unsigned long long bcnt_t
void timeval_add(struct timeval *sum, struct timeval *term)
static int start(struct m0_fom *fom)
struct m0_rpc_fop_session_terminate term
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)