22 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 185 32, 64, 128, 256, 512)
194 M0_ADDB2_PUSH(
LABEL_ID + 2, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100);
196 M0_ADDB2_PUSH(
LABEL_ID + 3, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512);
209 static const char ruler[] =
" " 211 printf(
"%*.*s",
x,
x, ruler);
232 val_print(&
r->ar_val, 0);
233 for (
i = 0;
i <
r->ar_label_nr; ++
i)
234 val_print(&
r->ar_label[
i], 8);
320 int sensor_consumed = 0;
408 #undef M0_TRACE_SUBSYSTEM static void id_philter(void)
static struct m0_addb2_philter p
void m0_addb2_callback_fini(struct m0_addb2_callback *callback)
static struct m0_addb2_mach * m
static int noop_submit(const struct m0_addb2_mach *m, struct m0_addb2_trace *t)
struct m0_ut_suite addb2_consumer_ut
#define M0_ADDB2_PUSH(id,...)
static void test_fire(const struct m0_addb2_source *s, const struct m0_addb2_philter *p, const struct m0_addb2_callback *c, const struct m0_addb2_record *r)
void m0_addb2_philter_global_del(struct m0_addb2_philter *ph)
M0_ADDB2_ADD(M0_AVI_FS_CREATE, new_fid.f_container, new_fid.f_key, mode, rc)
static void empty_push_pop(void)
void mach_put(struct m0_addb2_mach *m)
static void sensor_check_fire(const struct m0_addb2_source *s, const struct m0_addb2_philter *p, const struct m0_addb2_callback *c, const struct m0_addb2_record *r)
void m0_addb2_callback_add(struct m0_addb2_philter *ph, struct m0_addb2_callback *callback)
void m0_addb2_push(uint64_t id, int n, const uint64_t *value)
static void global_philter(void)
const uint64_t SENSOR_MARKER
void m0_addb2_philter_id_init(struct m0_addb2_philter *ph, uint64_t id)
void m0_addb2_philter_true_init(struct m0_addb2_philter *ph)
static struct m0_addb2_callback c
static struct m0_thread t[8]
static struct m0_addb2_sensor sen
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 void source_get(void)
bool receq(const struct m0_addb2_record *r0, const struct small_record *r1)
static m0_bindex_t offset
void m0_addb2_philter_global_add(struct m0_addb2_philter *ph)
void m0_addb2_callback_del(struct m0_addb2_callback *callback)
void m0_addb2_philter_fini(struct m0_addb2_philter *philter)
struct m0_addb2_mach * mach_set(int(*s)(const struct m0_addb2_mach *, struct m0_addb2_trace *))
void m0_addb2_pop(uint64_t id)
static void source_put(void)
static void indent(int depth)
static uint64_t payload[1024]
void m0_addb2_philter_add(struct m0_addb2_source *src, struct m0_addb2_philter *ph)
static void sensor_N(void)
static const struct m0_addb2_sensor_ops sensor_ops
static void data_label(void)
static struct stream * shouldbe
void m0_addb2_callback_init(struct m0_addb2_callback *callback, void(*fire)(const struct m0_addb2_source *, const struct m0_addb2_philter *, const struct m0_addb2_callback *, const struct m0_addb2_record *), void *datum)
static void cmp_fire(const struct m0_addb2_source *s, const struct m0_addb2_philter *p, const struct m0_addb2_callback *c, const struct m0_addb2_record *r)
void m0_addb2_philter_del(struct m0_addb2_philter *ph)
int fill_one(struct m0_addb2_mach *m)
static struct m0_addb2_source * s
struct m0_addb2_source * m0_addb2_mach_source(struct m0_addb2_mach *m)
static void(* fire)(const struct m0_addb2_source *, const struct m0_addb2_philter *, const struct m0_addb2_callback *, const struct m0_addb2_record *)
struct small_record * rec