23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 49 {
"dead", (
void*)0xdead },
50 {
"beaf", (
void*)0xbeaf },
51 {
"cafe", (
void*)0xcafe },
52 {
"babe", (
void*)0xbabe },
53 {
"d00d", (
void*)0xd00d },
54 {
"8bad", (
void*)0x8bad },
55 {
"f00d", (
void*)0xf00d },
56 [
OPT] = {
"M0_BE:opt1", (
void*)0xf00d0001 },
57 {
"M0_BE:opt2", (
void*)0xf00d0002 },
58 {
"M0_BE:opt3", (
void*)0xf00d0003 },
59 {
"M0_BE:opt4", (
void*)0xf00d0004 },
60 [
END] = {
"M0_BE:end0", (
void*)0xf00d0000 },
103 strcmp(nk, dict[
i +
OPT].
name) == 0);
133 #undef M0_TRACE_SUBSYSTEM
void m0_be_ut_seg_fini(struct m0_be_ut_seg *ut_seg)
static struct m0_addb2_philter p
struct m0_be_domain * bs_domain
M0_INTERNAL int m0_be_seg_dict_begin(struct m0_be_seg *seg, const char *start_key, const char **this_key, void **this_rec)
M0_INTERNAL int m0_be_seg_dict_insert(struct m0_be_seg *seg, struct m0_be_tx *tx, const char *name, void *value)
void m0_be_ut_seg_reload(struct m0_be_ut_seg *ut_seg)
M0_INTERNAL void m0_be_seg_dict_init(struct m0_be_seg *seg)
M0_INTERNAL int m0_be_seg_dict_next(struct m0_be_seg *seg, const char *prefix, const char *start_key, const char **this_key, void **this_rec)
struct m0_be_seg * bus_seg
M0_INTERNAL void m0_be_tx_fini(struct m0_be_tx *tx)
int const char const void * value
M0_INTERNAL void m0_be_tx_prep(struct m0_be_tx *tx, const struct m0_be_tx_credit *credit)
struct m0_be_ut_seg ut_seg
void m0_be_ut_seg_init(struct m0_be_ut_seg *ut_seg, struct m0_be_ut_backend *ut_be, m0_bcount_t size)
#define M0_BE_TX_CREDIT(nr, size)
void m0_be_ut_seg_dict(void)
struct m0_be_ut_backend ut_be
M0_INTERNAL int m0_be_seg_dict_delete(struct m0_be_seg *seg, struct m0_be_tx *tx, const char *name)
M0_INTERNAL int m0_be_tx_open_sync(struct m0_be_tx *tx)
void m0_be_ut_backend_init(struct m0_be_ut_backend *ut_be)
M0_INTERNAL void m0_be_tx_init(struct m0_be_tx *tx, uint64_t tid, struct m0_be_domain *dom, struct m0_sm_group *sm_group, m0_be_tx_cb_t persistent, m0_be_tx_cb_t discarded, void(*filler)(struct m0_be_tx *tx, void *payload), void *datum)
M0_INTERNAL void m0_be_seg_dict_delete_credit(struct m0_be_seg *seg, const char *name, struct m0_be_tx_credit *accum)
M0_INTERNAL void m0_be_seg_dict_create_credit(struct m0_be_seg *seg, struct m0_be_tx_credit *accum)
void m0_be_ut_tx_init(struct m0_be_tx *tx, struct m0_be_ut_backend *ut_be)
void m0_be_ut_backend_fini(struct m0_be_ut_backend *ut_be)
static struct m0_be_seg * seg
M0_INTERNAL void m0_be_seg_dict_create(struct m0_be_seg *seg, struct m0_be_tx *tx)
M0_INTERNAL void m0_be_seg_dict_insert_credit(struct m0_be_seg *seg, const char *name, struct m0_be_tx_credit *accum)
M0_INTERNAL int m0_be_seg_dict_lookup(struct m0_be_seg *seg, const char *name, void **out)
M0_INTERNAL void m0_be_tx_close_sync(struct m0_be_tx *tx)