Go to the source code of this file.
|
static int | _test (void) |
|
static void | _test_timeout (m0_time_t deadline, m0_time_t timeout, bool reset) |
|
static void | _test_resend (struct m0_fop *fop, bool post_sync) |
|
static void | _test_timer_start_failure (void) |
|
static void | _ha_notify (struct m0_rpc_conn *conn, uint8_t state) |
|
static void | _ha_do_not_notify (struct m0_rpc_conn *conn, uint8_t state) |
|
static int | ts_item_init (void) |
|
static int | ts_item_fini (void) |
|
static bool | chk_state (const struct m0_rpc_item *item, enum m0_rpc_item_state state) |
|
static void | test_simple_transitions (void) |
|
void | disable_packet_ready_set_reply_error (int arg) |
|
static void | test_reply_item_error (void) |
|
static void | test_dropped (struct m0_rpc_item *item) |
|
static void | test_timeout (void) |
|
static bool | only_second_time (void *data) |
|
static bool | drop_twice (void *data) |
|
static void | test_resend (void) |
|
static void | test_failure_before_sending (void) |
|
static void | arrow_sent_cb (struct m0_rpc_item *item) |
|
static void | fop_release (struct m0_ref *ref) |
|
static void | test_oneway_item (void) |
|
void | fop_test (int expected_rc) |
|
static void | check_cancel (bool already_replied, bool reinitialise) |
|
static void | cancel_item_with_various_states (bool reinitialise) |
|
static void | test_cancel_item (void) |
|
static void | session_ut_item_cb (struct m0_rpc_item *item) |
|
static void | test_cancel_session (void) |
|
static void | test_item_cache_item_get (struct m0_rpc_item *item) |
|
static void | test_item_cache_item_put (struct m0_rpc_item *item) |
|
static void | test_item_cache_add_nth (struct m0_rpc_item_cache *ic, struct m0_mutex *lock, struct m0_rpc_item *items, int items_nr, int n) |
|
static void | test_item_cache (void) |
|
void | __ha_accept_imitate (struct m0_fid *sfid) |
|
static void | __ha_timer__dummy (struct m0_sm_timer *timer) |
|
static bool | __ha_service_event (struct m0_clink *link) |
|
static void | test_ha_cancel (void) |
|
static void | test_ha_notify () |
|
◆ IS_INCR_BY_1
◆ IS_INCR_BY_N
#define IS_INCR_BY_N |
( |
|
p, |
|
|
|
n |
|
) |
| _0C(saved.rs_ ## p + (n) == stats.rs_ ## p) |
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
◆ M0_UT_TRACE
◆ anonymous enum
◆ anonymous enum
Enumerator |
---|
M0_RPC_ITEM_CACHE_ITEMS_NR_MAX | |
Definition at line 912 of file item.c.
◆ __ha_accept_imitate()
void __ha_accept_imitate |
( |
struct m0_fid * |
sfid | ) |
|
◆ __ha_service_event()
static bool __ha_service_event |
( |
struct m0_clink * |
link | ) |
|
|
static |
◆ __ha_timer__dummy()
static void __ha_timer__dummy |
( |
struct m0_sm_timer * |
timer | ) |
|
|
static |
◆ _ha_do_not_notify()
static void _ha_do_not_notify |
( |
struct m0_rpc_conn * |
conn, |
|
|
uint8_t |
state |
|
) |
| |
|
static |
◆ _ha_notify()
static void _ha_notify |
( |
struct m0_rpc_conn * |
conn, |
|
|
uint8_t |
state |
|
) |
| |
|
static |
◆ _test()
static int _test |
( |
void |
| ) |
|
|
static |
◆ _test_resend()
static void _test_resend |
( |
struct m0_fop * |
fop, |
|
|
bool |
post_sync |
|
) |
| |
|
static |
◆ _test_timeout()
◆ _test_timer_start_failure()
static void _test_timer_start_failure |
( |
void |
| ) |
|
|
static |
◆ arrow_sent_cb()
◆ cancel_item_with_various_states()
static void cancel_item_with_various_states |
( |
bool |
reinitialise | ) |
|
|
static |
◆ check_cancel()
static void check_cancel |
( |
bool |
already_replied, |
|
|
bool |
reinitialise |
|
) |
| |
|
static |
◆ chk_state()
◆ disable_packet_ready_set_reply_error()
void disable_packet_ready_set_reply_error |
( |
int |
arg | ) |
|
◆ drop_twice()
static bool drop_twice |
( |
void * |
data | ) |
|
|
static |
◆ fop_release()
static void fop_release |
( |
struct m0_ref * |
ref | ) |
|
|
static |
◆ fop_test()
void fop_test |
( |
int |
expected_rc | ) |
|
◆ only_second_time()
static bool only_second_time |
( |
void * |
data | ) |
|
|
static |
◆ session_ut_item_cb()
static void session_ut_item_cb |
( |
struct m0_rpc_item * |
item | ) |
|
|
static |
◆ test_cancel_item()
static void test_cancel_item |
( |
void |
| ) |
|
|
static |
◆ test_cancel_session()
static void test_cancel_session |
( |
void |
| ) |
|
|
static |
◆ test_dropped()
◆ test_failure_before_sending()
static void test_failure_before_sending |
( |
void |
| ) |
|
|
static |
◆ test_ha_cancel()
static void test_ha_cancel |
( |
void |
| ) |
|
|
static |
◆ test_ha_notify()
static void test_ha_notify |
( |
void |
| ) |
|
|
static |
◆ test_item_cache()
static void test_item_cache |
( |
void |
| ) |
|
|
static |
◆ test_item_cache_add_nth()
◆ test_item_cache_item_get()
static void test_item_cache_item_get |
( |
struct m0_rpc_item * |
item | ) |
|
|
static |
◆ test_item_cache_item_put()
static void test_item_cache_item_put |
( |
struct m0_rpc_item * |
item | ) |
|
|
static |
◆ test_oneway_item()
static void test_oneway_item |
( |
void |
| ) |
|
|
static |
◆ test_reply_item_error()
static void test_reply_item_error |
( |
void |
| ) |
|
|
static |
◆ test_resend()
static void test_resend |
( |
void |
| ) |
|
|
static |
◆ test_simple_transitions()
static void test_simple_transitions |
( |
void |
| ) |
|
|
static |
◆ test_timeout()
static void test_timeout |
( |
void |
| ) |
|
|
static |
◆ ts_item_fini()
static int ts_item_fini |
( |
void |
| ) |
|
|
static |
◆ ts_item_init()
static int ts_item_init |
( |
void |
| ) |
|
|
static |
◆ ALREADY_REPLIED
bool ALREADY_REPLIED = true |
◆ arrow_item_ops
Initial value:= {
}
static void arrow_sent_cb(struct m0_rpc_item *item)
Definition at line 543 of file item.c.
◆ arrow_sent_cb_called
bool arrow_sent_cb_called = false |
|
static |
◆ expected_fid
◆ expected_state
◆ fop
◆ fop_dispatched_nr
uint32_t fop_dispatched_nr = 0 |
◆ fop_release_called
◆ ha_thread
◆ item
◆ item_rc
◆ item_ut
Initial value:= {
.ts_name = "rpc-item-ut",
.ts_tests = {
}
}
static void test_item_cache(void)
static int ts_item_fini(void)
static void test_ha_cancel(void)
static void test_resend(void)
static void test_reply_item_error(void)
static void test_oneway_item(void)
static void test_ha_notify()
static void test_failure_before_sending(void)
static void test_timeout(void)
static void test_cancel_session(void)
static int ts_item_init(void)
static void test_simple_transitions(void)
static void test_cancel_item(void)
Definition at line 1292 of file item.c.
◆ machine
◆ REINITIALISE_AFTER_CANCEL
bool REINITIALISE_AFTER_CANCEL = true |
◆ rpc_conn_original_ha_cb
◆ saved
◆ session
◆ session_ut_item_ops
Initial value:= {
}
static void session_ut_item_cb(struct m0_rpc_item *item)
Definition at line 828 of file item.c.
◆ stats
◆ test_item_cache_item_get_xid
uint64_t test_item_cache_item_get_xid = UINT64_MAX - 1 |
|
static |
◆ test_item_cache_item_put_xid
uint64_t test_item_cache_item_put_xid = UINT64_MAX - 1 |
|
static |
◆ test_item_cache_itype
Initial value:= {
}
static struct m0_rpc_item_type_ops test_item_cache_type_ops
Definition at line 59 of file item.c.
◆ test_item_cache_type_ops
Initial value:= {
}
static void test_item_cache_item_get(struct m0_rpc_item *item)
static void test_item_cache_item_put(struct m0_rpc_item *item)
Definition at line 938 of file item.c.
◆ wait