25 #ifndef __MOTR_ST_ST_H__ 26 #define __MOTR_ST_ST_H__ 33 #include <asm-generic/errno-base.h> 196 int st_run(
const char *test_list_str);
218 int lno,
const char *func);
struct st_worker_stat * sx_worker_stats
void st_idx_init(struct m0_idx *idx, struct m0_realm *parent, const struct m0_uint128 *id)
static void ptr(struct m0_addb2__context *ctx, const uint64_t *v, char *buf)
void st_alloc_aligned(void **ptr, size_t size, size_t alignment)
int st_entity_create(struct m0_fid *pool, struct m0_entity *entity, struct m0_op **op)
void st_idx_open(struct m0_entity *entity)
struct st_worker_stat * st_get_worker_stat(int idx)
void st_op_free(struct m0_op *op)
struct st_test ss_tests[]
int const char const void size_t int flags
int st_stop_workers(void)
void st_obj_fini(struct m0_obj *obj)
void st_idx_fini(struct m0_idx *idx)
void st_free_aligned(void *ptr, size_t size, size_t alignment)
int st_run(const char *test_list_str)
uint64_t oid_get_many(struct m0_uint128 *oids, uint64_t nr_oids)
int st_idx_op(struct m0_idx *idx, enum m0_idx_opcode opcode, struct m0_bufvec *keys, struct m0_bufvec *vals, int *rcs, int flag, struct m0_op **op)
int st_set_worker_tid(int idx, pid_t tid)
void st_set_instance(struct m0_client *instance)
struct st_suite ** sx_selected
int oid_allocator_fini(void)
int st_get_nr_workers(void)
void st_set_nr_workers(int nr)
static void attr(struct m0_addb2__context *ctx, const uint64_t *v, char *buf)
struct m0 * st_get_motr(void)
int64_t sws_nr_failed_asserts
void st_container_init(struct m0_container *con, struct m0_realm *parent, const struct m0_uint128 *id, struct m0_client *instance)
int oid_get(struct m0_uint128 *oid)
static struct m0_addb2_callback c
void st_set_tests(const char *)
void oid_put_many(struct m0_uint128 *oids, uint64_t nr_oids)
void st_obj_init(struct m0_obj *obj, struct m0_realm *parent, const struct m0_uint128 *id, uint64_t layout_id)
static struct m0_pool pool
struct m0_client * si_instance
enum st_mode st_get_test_mode(void)
void st_obj_op(struct m0_obj *obj, enum m0_obj_opcode opcode, struct m0_indexvec *ext, struct m0_bufvec *data, struct m0_bufvec *attr, uint64_t mask, uint32_t flags, struct m0_op **op)
struct m0_instance sx_instance
struct m0_client * st_get_instance(void)
int oid_allocator_init(void)
void st_op_launch(struct m0_op **op, uint32_t nr)
void st_entity_fini(struct m0_entity *entity)
const char * st_get_tests(void)
struct st_suite ** sx_all
static struct m0 instance
int st_entity_delete(struct m0_entity *entity, struct m0_op **op)
void oid_put(struct m0_uint128 oid)
int st_get_worker_idx(pid_t tid)
struct st_cfg st_get_cfg(void)
void st_entity_open(struct m0_entity *entity)
int st_start_workers(void)
int32_t st_op_wait(struct m0_op *op, uint64_t bits, m0_time_t to)
bool st_assertimpl(bool c, const char *str_c, const char *file, int lno, const char *func)
void st_op_fini(struct m0_op *op)
void st_set_test_mode(enum st_mode)
int st_layout_op(struct m0_obj *obj, enum m0_entity_opcode opcode, struct m0_client_layout *layout, struct m0_op **op)