26 #include <sys/types.h> 48 #define AD_ADIEU_CS_SZ 16 67 static const char linux_path[] =
"./__s/o/100000000000000:2";
68 static const char perf_path[] =
"./__s/backstore/o/100000000000000:2";
139 for (
i = 0;
i <
NR; ++
i) {
262 for (
i = 1;
i <
NR; ++
i) {
266 f = fopen(path,
"r");
267 for (j = 0; j <
i; ++j) {
286 for (
i = 1;
i <
NR; ++
i) {
403 { .ub_name =
"write-prime",
409 { .ub_name =
"write",
421 { .ub_name =
"iovec-sort",
428 { .ub_name =
"iovec-sort-invert",
M0_INTERNAL void m0_chan_wait(struct m0_clink *link)
static void ub_iovec_init()
enum m0_stob_io_flags si_flags
M0_INTERNAL void m0_stob_io_fini(struct m0_stob_io *io)
M0_INTERNAL void m0_clink_init(struct m0_clink *link, m0_chan_cb_t cb)
static void ub_iovec_sort()
M0_INTERNAL int m0_stob_locate(struct m0_stob *stob)
M0_INTERNAL void m0_clink_del_lock(struct m0_clink *link)
#define M0_UB_ASSERT(cond)
static void ub_fini(void)
static m0_bindex_t stob_vec1[NR_SORT]
static struct m0_stob_domain * dom
M0_INTERNAL int m0_stob_domain_destroy(struct m0_stob_domain *dom)
static void ub_read(int i)
static char * user_buf[NR]
static int ub_init(const char *opts M0_UNUSED)
static char * read_cksm_buf[NR]
static const char perf_location[]
static void test_adieu_fini(void)
struct m0_ub_set m0_adieu_ub
static m0_bcount_t user_vec[NR]
static void ub_iovec_sort_invert()
static void test_read(int i)
M0_INTERNAL uint32_t m0_stob_block_shift(struct m0_stob *stob)
void m0_stob_ut_adieu_linux(void)
static char * user_bufs1[NR_SORT]
M0_INTERNAL int m0_stob_domain_create(const char *location, const char *str_cfg_init, uint64_t dom_key, const char *str_cfg_create, struct m0_stob_domain **out)
static int test_adieu_init(const char *location, const char *dom_cfg, const char *stob_cfg)
M0_INTERNAL int m0_stob_io_prepare_and_launch(struct m0_stob_io *io, struct m0_stob *obj, struct m0_dtx *tx, struct m0_io_scope *scope)
struct m0_indexvec si_stob
static const char linux_path[]
static const char perf_path[]
M0_INTERNAL void m0_stob_id_make(uint64_t container, uint64_t key, const struct m0_fid *dom_id, struct m0_stob_id *stob_id)
M0_INTERNAL void * m0_stob_addr_pack(const void *buf, uint32_t shift)
void * m0_alloc(size_t size)
static struct m0_stob * obj
struct m0_fol_frag * si_fol_frag
static char * user_cksm_buf[NR]
static m0_bindex_t stob_vec[NR]
static void test_write(int i)
static struct m0_stob_io io
void m0_clink_add_lock(struct m0_chan *chan, struct m0_clink *link)
M0_INTERNAL int m0_stob_destroy(struct m0_stob *stob, struct m0_dtx *dtx)
static char * read_bufs[NR]
#define M0_ALLOC_PTR(ptr)
M0_INTERNAL void m0_stob_iovec_sort(struct m0_stob_io *stob)
static char * read_buf[NR]
M0_INTERNAL void m0_clink_fini(struct m0_clink *link)
M0_INTERNAL void m0_stob_io_init(struct m0_stob_io *io)
M0_INTERNAL int m0_stob_find(const struct m0_stob_id *id, struct m0_stob **out)
static char * user_bufs[NR]
static m0_bcount_t user_vec1[NR_SORT]
static uint32_t block_shift
M0_INTERNAL int m0_ut_stob_create(struct m0_stob *stob, const char *str_cfg, struct m0_be_domain *be_dom)
M0_INTERNAL void * m0_alloc_aligned(size_t size, unsigned shift)
static void ub_write(int i)
void m0_stob_ut_adieu_perf(void)
static struct m0_clink clink
static void ub_iovec_invert()
static void test_adieu(const char *path)
static const char linux_location[]
enum m0_stob_io_opcode si_opcode