#include "cm/cp.h"
#include "cm/cp.c"
#include "cm/ut/common_service.h"
#include "sns/cm/cp.h"
#include "ioservice/fid_convert.h"
#include "lib/fs.h"
#include "ut/misc.h"
#include "ut/ut.h"
Go to the source code of this file.
◆ anonymous enum
Definition at line 40 of file cp.c.
◆ cm_cp_fini()
static int cm_cp_fini |
( |
void |
| ) |
|
|
static |
Definition at line 290 of file cp.c.
◆ cm_cp_init()
static int cm_cp_init |
( |
void |
| ) |
|
|
static |
Definition at line 271 of file cp.c.
◆ cp_op()
static void cp_op |
( |
const int |
tid | ) |
|
|
static |
Definition at line 230 of file cp.c.
◆ cp_post()
Definition at line 189 of file cp.c.
◆ dummy_cp_fom_fini()
void dummy_cp_fom_fini |
( |
struct m0_fom * |
fom | ) |
|
Definition at line 169 of file cp.c.
◆ dummy_cp_init()
static int dummy_cp_init |
( |
struct m0_cm_cp * |
cp | ) |
|
|
static |
Definition at line 122 of file cp.c.
◆ dummy_cp_phase()
static int dummy_cp_phase |
( |
struct m0_cm_cp * |
cp | ) |
|
|
static |
Definition at line 117 of file cp.c.
◆ dummy_cp_phase_next()
static int dummy_cp_phase_next |
( |
struct m0_cm_cp * |
cp | ) |
|
|
static |
Definition at line 130 of file cp.c.
◆ dummy_cp_read()
static int dummy_cp_read |
( |
struct m0_cm_cp * |
cp | ) |
|
|
static |
Definition at line 98 of file cp.c.
◆ dummy_cp_write()
static int dummy_cp_write |
( |
struct m0_cm_cp * |
cp | ) |
|
|
static |
Definition at line 110 of file cp.c.
◆ dummy_cp_write_pre()
static int dummy_cp_write_pre |
( |
struct m0_cm_cp * |
cp | ) |
|
|
static |
Definition at line 105 of file cp.c.
◆ test_cp_multi_thread()
static void test_cp_multi_thread |
( |
void |
| ) |
|
|
static |
Definition at line 242 of file cp.c.
◆ test_cp_single_thread()
static void test_cp_single_thread |
( |
void |
| ) |
|
|
static |
Definition at line 214 of file cp.c.
◆ ut_cp_service_allocate()
Definition at line 67 of file cp.c.
◆ ut_cp_service_fini()
Definition at line 55 of file cp.c.
◆ ut_cp_service_start()
Definition at line 44 of file cp.c.
◆ ut_cp_service_stop()
Definition at line 50 of file cp.c.
◆ cm_cp_ut
Initial value:= {
.ts_name = "cm-cp-ut",
.ts_tests = {
}
}
static int cm_cp_fini(void)
static void test_cp_single_thread(void)
static int cm_cp_init(void)
static void test_cp_multi_thread(void)
Definition at line 298 of file cp.c.
◆ dummy_cp_fom_ops
Initial value:= {
}
static int cp_fom_tick(struct m0_fom *fom)
void dummy_cp_fom_fini(struct m0_fom *fom)
static uint64_t cp_fom_locality(const struct m0_fom *fom)
Definition at line 179 of file cp.c.
◆ m0_sns_cm_cp_dummy_ops
Initial value:= {
.co_action = {
},
}
M0_INTERNAL void m0_sns_cm_cp_free(struct m0_cm_cp *cp)
M0_INTERNAL void m0_sns_cm_cp_complete(struct m0_cm_cp *cp)
static int dummy_cp_write(struct m0_cm_cp *cp)
M0_INTERNAL bool m0_sns_cm_cp_invariant(const struct m0_cm_cp *cp)
static int dummy_cp_init(struct m0_cm_cp *cp)
static int dummy_cp_phase_next(struct m0_cm_cp *cp)
static int dummy_cp_write_pre(struct m0_cm_cp *cp)
static int dummy_cp_read(struct m0_cm_cp *cp)
static int dummy_cp_phase(struct m0_cm_cp *cp)
M0_INTERNAL uint64_t cp_home_loc_helper(const struct m0_cm_cp *cp)
M0_INTERNAL int m0_sns_cm_cp_fini(struct m0_cm_cp *cp)
Definition at line 142 of file cp.c.
◆ m_ag
Definition at line 95 of file cp.c.
◆ m_nb
Definition at line 96 of file cp.c.
◆ m_sns_cp
Definition at line 94 of file cp.c.
◆ nbp
Definition at line 37 of file cp.c.
◆ s_ag
Definition at line 38 of file cp.c.
◆ s_nb
Definition at line 36 of file cp.c.
◆ s_sns_cp
Definition at line 35 of file cp.c.
◆ sem
Definition at line 32 of file cp.c.
◆ ut_cp_service_ops
Initial value:= {
}
static void ut_cp_service_stop(struct m0_reqh_service *service)
static void ut_cp_service_fini(struct m0_reqh_service *service)
static int ut_cp_service_start(struct m0_reqh_service *service)
Definition at line 61 of file cp.c.
◆ ut_cp_service_type
Initial value:= {
.rst_name = "ut-cp",
}
static const struct m0_reqh_service_type_ops ut_cp_service_type_ops
Definition at line 87 of file cp.c.
◆ ut_cp_service_type_ops
Initial value:= {
}
static int ut_cp_service_allocate(struct m0_reqh_service **service, const struct m0_reqh_service_type *stype)
Definition at line 83 of file cp.c.