189 size_t act_fop_size = 6876;
200 .
name =
"xcode fop test",
325 .
ts_name =
"xcode_bufvec_fop-ut",
static void fop_verify(struct m0_fop *fop)
M0_INTERNAL void * m0_xcode_ctx_top(const struct m0_xcode_ctx *ctx)
#define M0_ALLOC_ARR(arr, nr)
struct m0_xcode_type * m0_fop_test_arr_xc
static struct buffer * cur(struct m0_addb2_mach *mach, m0_bcount_t space)
struct m0_bufvec nb_buffer
#define M0_FOP_TYPE_INIT(ft,...)
struct m0_xcode_type * m0_test_key_xc
static char * fop_test_buf
M0_INTERNAL void m0_fop_init(struct m0_fop *fop, struct m0_fop_type *fopt, void *data, void(*fop_release)(struct m0_ref *))
static void test_fop_encdec(void)
const struct m0_xcode_type * ft_xt
static int xcode_bufvec_fop_fini(void)
struct m0_desc_arr * fta_data
void *(* xcx_alloc)(struct m0_xcode_cursor *, size_t)
void * m0_fop_data(const struct m0_fop *fop)
void m0_fop_type_fini(struct m0_fop_type *fopt)
struct m0_xcode_type * m0_fop_test_xc
struct m0_bufvec_cursor xcx_buf
M0_INTERNAL void * m0_bufvec_cursor_addr(struct m0_bufvec_cursor *cur)
M0_INTERNAL int m0_xcode_decode(struct m0_xcode_ctx *ctx)
static struct m0_xcode_type ** xt[]
static void fop_free(struct m0_fop *fop)
M0_INTERNAL int m0_bufvec_alloc(struct m0_bufvec *bufvec, uint32_t num_segs, m0_bcount_t seg_size)
M0_INTERNAL int m0_xcode_length(struct m0_xcode_ctx *ctx)
struct m0_xcode_type * m0_pair_xc
M0_INTERNAL void m0_bufvec_free(struct m0_bufvec *bufvec)
struct m0_fop_type * f_type
M0_INTERNAL void m0_xc_xcode_fops_fini(void)
static struct m0_addb2_callback c
static int xcode_bufvec_fop_init(void)
M0_INTERNAL void m0_bufvec_cursor_init(struct m0_bufvec_cursor *cur, const struct m0_bufvec *bvec)
static struct m0_fop_type m0_fop_test_fopt
M0_INTERNAL void * m0_xcode_alloc(struct m0_xcode_cursor *it, size_t nob)
struct m0_rpc_machine machine
struct m0_xcode_type * m0_test_buf_xc
struct m0_fop_type_ops test_ops
struct m0_fop_data f_data
M0_INTERNAL void m0_xc_xcode_fops_init(void)
struct m0_fop_test_arr ft_arr
M0_INTERNAL void m0_fop_release(struct m0_ref *ref)
struct m0_ut_suite xcode_bufvec_fop_ut
#define M0_ALLOC_PTR(ptr)
M0_INTERNAL int m0_xcode_encode(struct m0_xcode_ctx *ctx)
static struct m0_fop * fop
struct m0_xcode_type * m0_desc_arr_xc
M0_INTERNAL void m0_xcode_ctx_init(struct m0_xcode_ctx *ctx, const struct m0_xcode_obj *obj)
#define M0_IS_8ALIGNED(val)
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)