Motr  M0
io_nw_xfer.c File Reference
#include "layout/layout.h"
#include "lib/trace.h"
#include "lib/uuid.h"
#include "ut/ut.h"
#include "motr/ut/client.h"
#include "motr/io_nw_xfer.c"
#include "layout/layout_internal.h"
Include dependency graph for io_nw_xfer.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT
 
#define DUMMY_PTR   0xdeafdead
 
#define UT_DEFAULT_BLOCK_SIZE   (1ULL << M0_DEFAULT_BUF_SHIFT)
 

Functions

static void ut_test_io_di_size (void)
 
static void ut_helper_tioreqs_hash_func (uint64_t b_nr, uint64_t key, uint64_t exp_ret)
 
static void ut_test_tioreqs_hash_func (void)
 
static void ut_helper_tioreq_key_eq (uint64_t k1, uint64_t k2, bool exp_ret)
 
static void ut_test_tioreq_key_eq (void)
 
static void ut_test_target_ioreq_invariant (void)
 
static void ut_test_target_session (void)
 
static void ut_test_target_ioreq_locate (void)
 
static void ut_test_target_ioreq_seg_add (void)
 
static void ut_test_bulk_buffer_add (void)
 
static void ut_test_irfop_fini (void)
 
static void ut_test_target_ioreq_iofops_prepare (void)
 
static void ut_test_target_ioreq_init (void)
 
static void ut_test_target_ioreq_fini (void)
 
static void ut_test_nw_xfer_request_invariant (void)
 
static void ut_test_nw_xfer_tioreq_get (void)
 
static void ut_test_nw_xfer_io_distribute (void)
 
static void ut_test_nw_xfer_req_complete (void)
 
static void ut_test_nw_xfer_req_dispatch (void)
 
static void ut_test_nw_xfer_tioreq_map (void)
 
static void ut_test_nw_xfer_request_init (void)
 
static void ut_test_nw_xfer_request_fini (void)
 
static void ut_test_dgmode_rwvec_alloc_init (void)
 
static void ut_test_dgmode_rwvec_dealloc_fini (void)
 
M0_INTERNAL int m0_io_nw_xfer_ut_init (void)
 
M0_INTERNAL int m0_io_nw_xfer_ut_fini (void)
 

Variables

struct m0_ut_suite ut_suite_io_nw_xfer
 
static struct m0_clientdummy_instance
 

Macro Definition Documentation

◆ DUMMY_PTR

#define DUMMY_PTR   0xdeafdead

Definition at line 49 of file io_nw_xfer.c.

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT

Definition at line 25 of file io_nw_xfer.c.

◆ UT_DEFAULT_BLOCK_SIZE

#define UT_DEFAULT_BLOCK_SIZE   (1ULL << M0_DEFAULT_BUF_SHIFT)

Definition at line 51 of file io_nw_xfer.c.

Function Documentation

◆ m0_io_nw_xfer_ut_fini()

M0_INTERNAL int m0_io_nw_xfer_ut_fini ( void  )

Definition at line 615 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ m0_io_nw_xfer_ut_init()

M0_INTERNAL int m0_io_nw_xfer_ut_init ( void  )

Definition at line 594 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_helper_tioreq_key_eq()

static void ut_helper_tioreq_key_eq ( uint64_t  k1,
uint64_t  k2,
bool  exp_ret 
)
static

Helper function for ut_test_tioreq_key_eq().

Definition at line 100 of file io_nw_xfer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ut_helper_tioreqs_hash_func()

static void ut_helper_tioreqs_hash_func ( uint64_t  b_nr,
uint64_t  key,
uint64_t  exp_ret 
)
static

Helper function for ut_test_tioreqs_hash_func().

Definition at line 61 of file io_nw_xfer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ut_test_bulk_buffer_add()

static void ut_test_bulk_buffer_add ( void  )
static

Definition at line 299 of file io_nw_xfer.c.

◆ ut_test_dgmode_rwvec_alloc_init()

static void ut_test_dgmode_rwvec_alloc_init ( void  )
static

Definition at line 546 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_dgmode_rwvec_dealloc_fini()

static void ut_test_dgmode_rwvec_dealloc_fini ( void  )
static

Definition at line 570 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_io_di_size()

static void ut_test_io_di_size ( void  )
static

Definition at line 53 of file io_nw_xfer.c.

◆ ut_test_irfop_fini()

static void ut_test_irfop_fini ( void  )
static

Definition at line 305 of file io_nw_xfer.c.

◆ ut_test_nw_xfer_io_distribute()

static void ut_test_nw_xfer_io_distribute ( void  )
static

Definition at line 453 of file io_nw_xfer.c.

◆ ut_test_nw_xfer_req_complete()

static void ut_test_nw_xfer_req_complete ( void  )
static

Tests nw_xfer_req_complete().

Definition at line 460 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_nw_xfer_req_dispatch()

static void ut_test_nw_xfer_req_dispatch ( void  )
static

Definition at line 489 of file io_nw_xfer.c.

◆ ut_test_nw_xfer_request_fini()

static void ut_test_nw_xfer_request_fini ( void  )
static

Tests nw_xfer_request_fini().

Definition at line 530 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_nw_xfer_request_init()

static void ut_test_nw_xfer_request_init ( void  )
static

Tests nw_xfer_request_init().

Definition at line 500 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_nw_xfer_request_invariant()

static void ut_test_nw_xfer_request_invariant ( void  )
static

Tests nw_xfer_request_invariant().

Definition at line 399 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_nw_xfer_tioreq_get()

static void ut_test_nw_xfer_tioreq_get ( void  )
static

Tests nw_xfer_tioreq_get().

See also
ut_test_target_ioreq_init() and ut_test_target_ioreq_locate().

Definition at line 418 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_nw_xfer_tioreq_map()

static void ut_test_nw_xfer_tioreq_map ( void  )
static

Definition at line 493 of file io_nw_xfer.c.

◆ ut_test_target_ioreq_fini()

static void ut_test_target_ioreq_fini ( void  )
static

Tests target_ioreq_fini().

Definition at line 368 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_target_ioreq_init()

static void ut_test_target_ioreq_init ( void  )
static

Tests target_ioreq_init().

Definition at line 318 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_target_ioreq_invariant()

static void ut_test_target_ioreq_invariant ( void  )
static

Tests target_ioreq_invariant().

Definition at line 130 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_target_ioreq_iofops_prepare()

static void ut_test_target_ioreq_iofops_prepare ( void  )
static

Definition at line 310 of file io_nw_xfer.c.

◆ ut_test_target_ioreq_locate()

static void ut_test_target_ioreq_locate ( void  )
static

Tests target_ioreq_locate().

Definition at line 194 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_target_ioreq_seg_add()

static void ut_test_target_ioreq_seg_add ( void  )
static

Tests target_ioreq_seg_add().

Definition at line 234 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_target_session()

static void ut_test_target_session ( void  )
static

Tests target_session().

Definition at line 145 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_tioreq_key_eq()

static void ut_test_tioreq_key_eq ( void  )
static

Tests tioreq_key_eq().

Definition at line 112 of file io_nw_xfer.c.

Here is the call graph for this function:

◆ ut_test_tioreqs_hash_func()

static void ut_test_tioreqs_hash_func ( void  )
static

Tests tioreqs_hash_func().

Definition at line 75 of file io_nw_xfer.c.

Here is the call graph for this function:

Variable Documentation

◆ dummy_instance

struct m0_client* dummy_instance
static

Definition at line 47 of file io_nw_xfer.c.

◆ ut_suite_io_nw_xfer

struct m0_ut_suite ut_suite_io_nw_xfer

Definition at line 46 of file io_nw_xfer.c.