Motr
M0
|
Data Structures | |
struct | m0_fi_command_fom |
Functions | |
static bool | fi_str_not_empty (const char *s) |
M0_INTERNAL int | m0_fi_command_post_sync (struct m0_rpc_session *sess, const char *func, const char *tag, enum m0_fi_disp disp, uint32_t num1, uint32_t num2) |
static int | fi_command_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh) |
static void | fi_command_fom_fini (struct m0_fom *fom) |
static int | fi_command_execute (const struct m0_fi_command_req *req) |
static int | fi_command_fom_tick (struct m0_fom *fom) |
static size_t | fi_command_fom_locality (const struct m0_fom *fom) |
M0_INTERNAL void | m0_fi_command_fop_init (void) |
M0_INTERNAL void | m0_fi_command_fop_fini (void) |
static int | fis_allocate (struct m0_reqh_service **service, const struct m0_reqh_service_type *stype) |
static int | fis_start (struct m0_reqh_service *service) |
static void | fis_stop (struct m0_reqh_service *service) |
static void | fis_fini (struct m0_reqh_service *service) |
M0_BOB_DEFINE (M0_INTERNAL, &fis_bob, m0_reqh_fi_service) | |
M0_INTERNAL int | m0_fis_register (void) |
M0_INTERNAL void | m0_fis_unregister (void) |
Variables | |
struct m0_fi_command_fom | M0_XCA_DOMAIN |
const struct m0_fom_ops | fi_command_fom_ops |
const struct m0_fom_type_ops | m0_fi_command_fom_type_ops |
struct m0_fop_type | m0_fi_command_req_fopt |
struct m0_fop_type | m0_fi_command_rep_fopt |
static const struct m0_reqh_service_type_ops | fis_type_ops |
static const struct m0_reqh_service_ops | fis_ops |
struct m0_reqh_service_type | m0_fis_type |
static const struct m0_bob_type | fis_bob |
|
static |
Definition at line 97 of file fi_command_fom.c.
|
static |
|
static |
|
static |
|
static |
|
static |
Allocates m0_reqh_fi_service instance and initialises it as BOB. Exposes standard m0_reqh_service interface outside for registration with REQH.
Definition at line 115 of file fi_service.c.
|
static |
Definition at line 80 of file fi_service.c.
|
static |
Definition at line 62 of file fi_service.c.
|
static |
M0_BOB_DEFINE | ( | M0_INTERNAL | , |
& | fis_bob, | ||
m0_reqh_fi_service | |||
) |
M0_INTERNAL void m0_fi_command_fop_fini | ( | void | ) |
Definition at line 66 of file fi_command_fops.c.
M0_INTERNAL void m0_fi_command_fop_init | ( | void | ) |
M0_INTERNAL int m0_fi_command_post_sync | ( | struct m0_rpc_session * | sess, |
const char * | func, | ||
const char * | tag, | ||
enum m0_fi_disp | disp, | ||
uint32_t | num1, | ||
uint32_t | num2 | ||
) |
Posts fault injection command over already existing rpc session. Remote side to execute fault injection command in accordance with function name, tag and disposition. The command is executed synchronously providing m0_fi_command_rep::fcp_rc as a return code.
sess | - a valid rpc session |
func | - function name to fail on remote side |
tag | - tag the function to fail at |
disp | - fault disposition |
num1 | - 1st numerical (e.g. p in m0_fi_enable_random()) |
num2 | - 2nd numerical (e.g. m in m0_fi_enable_off_n_on_m()) |
Definition at line 56 of file fi_command.c.
M0_INTERNAL int m0_fis_register | ( | void | ) |
M0_INTERNAL void m0_fis_unregister | ( | void | ) |
const struct m0_fom_ops fi_command_fom_ops |
Definition at line 158 of file fi_command_fom.c.
|
static |
Definition at line 102 of file fi_service.c.
|
static |
Definition at line 89 of file fi_service.c.
|
static |
Definition at line 85 of file fi_service.c.
const struct m0_fom_type_ops m0_fi_command_fom_type_ops |
Definition at line 154 of file fi_command_fom.c.
struct m0_fop_type m0_fi_command_rep_fopt |
Definition at line 44 of file fi_command_fops.c.
struct m0_fop_type m0_fi_command_req_fopt |
Definition at line 43 of file fi_command_fops.c.
struct m0_reqh_service_type m0_fis_type |
Definition at line 95 of file fi_service.c.
struct m0_fi_command_fom M0_XCA_DOMAIN |