22 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 52 3, 5, 7, 9, 10, 11, 13, 15, 17, 1024, 1500, 60, 7776, 0xdeadbeef, 0
61 memcpy(orig, bucket,
sizeof orig);
64 bucket[
i] == orig[
i] + (
i == idx)));
81 for (
i = 0;
i < 60; ++
i) {
116 #undef M0_TRACE_SUBSYSTEM
struct m0_ut_suite addb2_hist_ut
int m0_addb2_hist_bucket(const struct m0_addb2_hist *hist, int64_t val)
void m0_addb2_hist_mod(struct m0_addb2_hist *hist, int64_t val)
void m0_addb2_hist_del(struct m0_addb2_hist *hist)
static void test_around(struct m0_addb2_hist *h, int64_t val)
struct m0_addb2_hist_data hi_data
uint32_t hd_bucket[M0_ADDB2_HIST_BUCKETS]
static void test_bucket(void)
static const int64_t minmax[][2]
void m0_addb2_hist_add_auto(struct m0_addb2_hist *hist, int skip, uint64_t label, int idx)
#define m0_forall(var, nr,...)
static const int64_t random_val[]
static void init_fini(void)
void m0_addb2_hist_add(struct m0_addb2_hist *hist, int64_t min, int64_t max, uint64_t label, int idx)
static void test_hist(struct m0_addb2_hist *h)
static void test_one(struct m0_addb2_hist *h, int64_t val)