30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_ADDB 72 int64_t
val, uint64_t datum)
97 struct m0_tl *
list, uint64_t label,
int idx)
130 uint64_t
val, uint64_t datum)
163 " val: %" PRIx64 ".",
c->co_sensor.s_id,
208 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_ADDB
static struct m0_list list
static const struct m0_addb2_sensor_ops clock_sensor_ops
void m0_addb2_counter_add(struct m0_addb2_counter *counter, uint64_t label, int idx)
void * m0_locality_data(int key)
static void counter_warn(struct m0_addb2_counter *c, uint64_t val)
void m0_addb2_list_counter_del(struct m0_addb2_list_counter *counter)
void m0_addb2_counter_mod_with(struct m0_addb2_counter *counter, int64_t val, uint64_t datum)
#define M0_LOG(level,...)
M0_INTERNAL size_t m0_list_length(const struct m0_list *list)
static void counter_fini(struct m0_addb2_sensor *s)
return M0_ERR(-EOPNOTSUPP)
void m0_addb2_clock_del(struct m0_addb2_sensor *clock)
#define M0_AMB(obj, ptr, field)
void m0_addb2_counter_del(struct m0_addb2_counter *counter)
static struct m0_addb2_callback c
int m0_addb2_local_counter_init(struct m0_addb2_local_counter *lc, uint64_t id, uint64_t counter)
void m0_addb2_sensor_add(struct m0_addb2_sensor *s, uint64_t id, unsigned nr, int idx, const struct m0_addb2_sensor_ops *ops)
static int counter_ctor(void *area, void *datum)
static const struct m0_addb2_sensor_ops list_sensor_ops
M0_INTERNAL void m0_addb2__counter_data_init(struct m0_addb2_counter_data *d)
static void list_counter_snapshot(struct m0_addb2_sensor *s, uint64_t *area)
void m0_addb2_clock_add(struct m0_addb2_sensor *clock, uint64_t label, int idx)
static uint64_t min64u(uint64_t a, uint64_t b)
void m0_addb2_list_counter_add(struct m0_addb2_list_counter *counter, struct m0_tl *list, uint64_t label, int idx)
struct m0_addb2_sensor co_sensor
static void clock_counter_snapshot(struct m0_addb2_sensor *s, uint64_t *area)
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)
void m0_addb2_counter_mod(struct m0_addb2_counter *counter, int64_t val)
static const struct m0_addb2_sensor_ops sensor_ops
void m0_addb2_local_counter_mod(struct m0_addb2_local_counter *lc, uint64_t val, uint64_t datum)
struct m0_addb2_sensor lc_sensor
static void counter_dtor(void *area, void *datum)
int m0_locality_data_alloc(size_t nob, int(*ctor)(void *, void *), void(*dtor)(void *, void *), void *datum)
void m0_addb2_sensor_del(struct m0_addb2_sensor *s)
static struct m0_addb2_source * s