23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 108 static const struct {
113 .t = { 1, 2, { 3 } },
114 .h = { .hd_bits = 0x0001000200000003 }
117 .t = { 0x1111, 0x2222, { 0x3333 } },
118 .h = { .hd_bits = 0x1111222200003333 }
136 #undef M0_TRACE_SUBSYSTEM
void m0_be_0type_add_credit(struct m0_be_domain *dom, const struct m0_be_0type *zt, const char *suffix, const struct m0_buf *data, struct m0_be_tx_credit *credit)
void m0_be_ut_obj_test(void)
M0_INTERNAL bool m0_buf_eq(const struct m0_buf *x, const struct m0_buf *y)
void m0_be_0type_del_credit(struct m0_be_domain *dom, const struct m0_be_0type *zt, const char *suffix, struct m0_be_tx_credit *credit)
static struct m0_be_0type be_ut_0type_test
M0_INTERNAL void m0_be_tx_fini(struct m0_be_tx *tx)
void m0_be_0type_unregister(struct m0_be_domain *dom, struct m0_be_0type *zt)
static const char * be_ut_0type_suffix
M0_INTERNAL void m0_be_tx_prep(struct m0_be_tx *tx, const struct m0_be_tx_credit *credit)
struct m0_be_ut_backend ut_be
static void be_ut_0type_test_fini(struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
void m0_be_0type_register(struct m0_be_domain *dom, struct m0_be_0type *zt)
void m0_be_ut_seg0_test(void)
static struct m0_thread t[8]
static struct m0_stob_domain * dom
void m0_be_ut_backend_init(struct m0_be_ut_backend *ut_be)
M0_INTERNAL int m0_be_tx_exclusive_open_sync(struct m0_be_tx *tx)
static int be_ut_0type_test_init(struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
struct m0_be_domain but_dom
int m0_be_0type_add(struct m0_be_0type *zt, struct m0_be_domain *dom, struct m0_be_tx *tx, const char *suffix, const struct m0_buf *data)
static void be_ut_0type_op_test(struct m0_be_ut_backend *ut_be, struct m0_be_0type *zt, const char *suffix, const struct m0_buf *data, bool add)
int m0_be_0type_del(struct m0_be_0type *zt, struct m0_be_domain *dom, struct m0_be_tx *tx, const char *suffix)
void m0_be_ut_tx_init(struct m0_be_tx *tx, struct m0_be_ut_backend *ut_be)
static const struct m0_buf be_ut_0type_data_buf
void m0_be_ut_backend_fini(struct m0_be_ut_backend *ut_be)
static char be_ut_0type_data[10000]
#define M0_BUF_INIT(size, data)
M0_INTERNAL void m0_be_tx_close_sync(struct m0_be_tx *tx)
static void add(struct m0_addb2_mach *mach, uint64_t id, int n, const uint64_t *value)