29 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_ADDB 37 uint64_t label,
int idx)
51 uint64_t label,
int idx)
74 int64_t
val, uint64_t datum)
78 if (
hist->hi_skip > 0) {
124 #undef M0_TRACE_SUBSYSTEM
void m0_addb2_counter_mod_with(struct m0_addb2_counter *counter, int64_t val, uint64_t datum)
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)
static const struct m0_addb2_sensor_ops hist_ops
void m0_addb2_hist_del(struct m0_addb2_hist *hist)
static int64_t max64(int64_t a, int64_t b)
#define M0_AMB(obj, ptr, field)
static struct m0_addb2_callback c
static void hist_snapshot(struct m0_addb2_sensor *s, uint64_t *area)
uint32_t hd_bucket[M0_ADDB2_HIST_BUCKETS]
static long long max(long long a, long long b)
void m0_addb2_sensor_add(struct m0_addb2_sensor *s, uint64_t id, unsigned nr, int idx, const struct m0_addb2_sensor_ops *ops)
M0_INTERNAL void m0_addb2__counter_data_init(struct m0_addb2_counter_data *d)
void m0_addb2_hist_mod_with(struct m0_addb2_hist *hist, int64_t val, uint64_t datum)
void m0_addb2_hist_add_auto(struct m0_addb2_hist *hist, int skip, uint64_t label, int idx)
struct m0_addb2_sensor co_sensor
struct m0_addb2_counter hi_counter
static long long min(long long a, long long b)
static int64_t min64(int64_t a, int64_t b)
M0_INTERNAL void m0_addb2__counter_snapshot(struct m0_addb2_sensor *s, uint64_t *area)
void(* so_snapshot)(struct m0_addb2_sensor *s, uint64_t *area)
static void skip(struct m0_addb2__context *ctx, const uint64_t *v, char *buf)
void m0_addb2_sensor_del(struct m0_addb2_sensor *s)
void m0_addb2_hist_add(struct m0_addb2_hist *hist, int64_t min, int64_t max, uint64_t label, int idx)
static void hist_fini(struct m0_addb2_sensor *s)
static struct m0_addb2_source * s