Motr  M0
rm_foms.c File Reference
#include "lib/memory.h"
#include "ut/ut.h"
#include "lib/finject.h"
#include "lib/time.h"
#include "fid/fid.h"
#include "net/lnet/lnet.h"
#include "rpc/rpc.h"
#include "reqh/reqh.h"
#include "rm/rm.h"
#include "rm/rm_fops.h"
#include "rm/ut/rmut.h"
#include "rm/ut/rings.h"
#include "rm/rm_foms.c"
#include "ut/cs_fop.h"
Include dependency graph for rm_foms.c:

Go to the source code of this file.

Enumerations

enum  test_type { RM_UT_FULL_CREDITS_TEST = 1, RM_UT_PARTIAL_CREDITS_TEST, RM_UT_INVALID_CREDITS_TEST, RM_UT_MEMFAIL_TEST }
 

Functions

void m0_remotes_tlist_add (struct m0_tl *tl, struct m0_rm_remote *rem)
 
void m0_remotes_tlist_del (struct m0_rm_remote *rem)
 
static void rmfoms_utinit (void)
 
static void rmfoms_utfini (void)
 
static struct m0_fopfop_alloc (enum m0_rm_incoming_type fomtype)
 
static void fop_dealloc (struct m0_fop *fop)
 
static void fom_create (enum m0_rm_incoming_type fomtype, bool err_test, struct m0_fop *fop, struct m0_fom **fom)
 
static void fom_fini (struct m0_fom *fom, enum m0_rm_incoming_type fomtype)
 
static void fom_fini_test (enum m0_rm_incoming_type fomtype)
 
static void fom_create_test (enum m0_rm_incoming_type fomtype, bool err_test)
 
static void brw_fop_populate (struct m0_fom *fom, enum test_type test)
 
static void brw_test_cleanup (void)
 
static void brw_fom_state_validate (struct m0_fom *fom, int32_t rc, enum test_type test)
 
static void brw_fom_state_test (enum test_type test)
 
static void brw_fom_create_test (void)
 
static void brw_fom_fini_test (void)
 
static void rvk_data_setup (enum test_type test)
 
static void rvk_fop_populate (struct m0_fom *fom)
 
static void rvk_test_cleanup (void)
 
static void rvk_fom_state_validate (struct m0_fom *fom, int32_t rc, enum test_type test)
 
static void rvk_fom_state_test (enum test_type test)
 
static void rvk_fom_create_test (void)
 
static void rvk_fom_fini_test (void)
 
static void borrow_fom_funcs_test (void)
 
static void revoke_fom_funcs_test (void)
 
void rm_fom_funcs_test (void)
 

Variables

static struct m0_fom_locality dummy_loc
 
struct m0_reqh_service dummy_svc
 
static struct m0_rm_loantest_loan
 
struct m0_reqh reqh
 
struct m0_reqh_servicereqh_svc
 
static struct m0_rpc_machinemachine
 
const struct m0_tl_descr m0_remotes_tl
 

Enumeration Type Documentation

◆ test_type

enum test_type
Enumerator
RM_UT_FULL_CREDITS_TEST 
RM_UT_PARTIAL_CREDITS_TEST 
RM_UT_INVALID_CREDITS_TEST 
RM_UT_MEMFAIL_TEST 

Definition at line 38 of file rm_foms.c.

Function Documentation

◆ borrow_fom_funcs_test()

static void borrow_fom_funcs_test ( void  )
static

Definition at line 610 of file rm_foms.c.

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

◆ brw_fom_create_test()

static void brw_fom_create_test ( void  )
static

Definition at line 364 of file rm_foms.c.

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

◆ brw_fom_fini_test()

static void brw_fom_fini_test ( void  )
static

Definition at line 375 of file rm_foms.c.

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

◆ brw_fom_state_test()

static void brw_fom_state_test ( enum test_type  test)
static

Definition at line 308 of file rm_foms.c.

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

◆ brw_fom_state_validate()

static void brw_fom_state_validate ( struct m0_fom fom,
int32_t  rc,
enum test_type  test 
)
static

Definition at line 264 of file rm_foms.c.

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

◆ brw_fop_populate()

static void brw_fop_populate ( struct m0_fom fom,
enum test_type  test 
)
static

Definition at line 212 of file rm_foms.c.

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

◆ brw_test_cleanup()

static void brw_test_cleanup ( void  )
static

Definition at line 248 of file rm_foms.c.

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

◆ fom_create()

static void fom_create ( enum m0_rm_incoming_type  fomtype,
bool  err_test,
struct m0_fop fop,
struct m0_fom **  fom 
)
static

Definition at line 112 of file rm_foms.c.

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

◆ fom_create_test()

static void fom_create_test ( enum m0_rm_incoming_type  fomtype,
bool  err_test 
)
static

Definition at line 189 of file rm_foms.c.

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

◆ fom_fini()

static void fom_fini ( struct m0_fom fom,
enum m0_rm_incoming_type  fomtype 
)
static

Definition at line 152 of file rm_foms.c.

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

◆ fom_fini_test()

static void fom_fini_test ( enum m0_rm_incoming_type  fomtype)
static

Definition at line 173 of file rm_foms.c.

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

◆ fop_alloc()

static struct m0_fop* fop_alloc ( enum m0_rm_incoming_type  fomtype)
static

Definition at line 79 of file rm_foms.c.

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

◆ fop_dealloc()

static void fop_dealloc ( struct m0_fop fop)
static

Definition at line 102 of file rm_foms.c.

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

◆ m0_remotes_tlist_add()

void m0_remotes_tlist_add ( struct m0_tl tl,
struct m0_rm_remote rem 
)
Here is the caller graph for this function:

◆ m0_remotes_tlist_del()

void m0_remotes_tlist_del ( struct m0_rm_remote rem)
Here is the caller graph for this function:

◆ revoke_fom_funcs_test()

static void revoke_fom_funcs_test ( void  )
static

Definition at line 634 of file rm_foms.c.

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

◆ rm_fom_funcs_test()

void rm_fom_funcs_test ( void  )

Definition at line 657 of file rm_foms.c.

Here is the call graph for this function:

◆ rmfoms_utfini()

static void rmfoms_utfini ( void  )
static

Definition at line 69 of file rm_foms.c.

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

◆ rmfoms_utinit()

static void rmfoms_utinit ( void  )
static

Definition at line 61 of file rm_foms.c.

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

◆ rvk_data_setup()

static void rvk_data_setup ( enum test_type  test)
static

Definition at line 385 of file rm_foms.c.

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

◆ rvk_fom_create_test()

static void rvk_fom_create_test ( void  )
static

Definition at line 588 of file rm_foms.c.

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

◆ rvk_fom_fini_test()

static void rvk_fom_fini_test ( void  )
static

Definition at line 600 of file rm_foms.c.

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

◆ rvk_fom_state_test()

static void rvk_fom_state_test ( enum test_type  test)
static

Definition at line 538 of file rm_foms.c.

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

◆ rvk_fom_state_validate()

static void rvk_fom_state_validate ( struct m0_fom fom,
int32_t  rc,
enum test_type  test 
)
static

Definition at line 489 of file rm_foms.c.

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

◆ rvk_fop_populate()

static void rvk_fop_populate ( struct m0_fom fom)
static

Definition at line 436 of file rm_foms.c.

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

◆ rvk_test_cleanup()

static void rvk_test_cleanup ( void  )
static

Definition at line 460 of file rm_foms.c.

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

Variable Documentation

◆ dummy_loc

struct m0_fom_locality dummy_loc
static

Definition at line 45 of file rm_foms.c.

◆ dummy_svc

struct m0_reqh_service dummy_svc

Definition at line 46 of file rm_foms.c.

◆ m0_remotes_tl

const struct m0_tl_descr m0_remotes_tl

◆ machine

struct m0_rpc_machine* machine
static

Definition at line 50 of file rm_foms.c.

◆ reqh

struct m0_reqh reqh

Definition at line 48 of file rm_foms.c.

◆ reqh_svc

struct m0_reqh_service* reqh_svc

Definition at line 49 of file rm_foms.c.

◆ test_loan

struct m0_rm_loan* test_loan
static

Definition at line 47 of file rm_foms.c.