#include "be/dtm0_log.h"
#include "be/list.h"
#include "be/tx.h"
#include "be/tx_credit.h"
#include "be/ut/helper.h"
#include "dtm0/clk_src.h"
#include "dtm0/tx_desc.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/trace.h"
#include "ut/ut.h"
Go to the source code of this file.
|
static void | p_state_set (struct m0_dtm0_tx_pa *pa, uint32_t state) |
|
static void | p_init (struct m0_dtm0_tx_pa *pa, int rand) |
|
static bool | p_check (const struct m0_dtm0_tx_pa *pa, int rand) |
|
static void | tid_init (struct m0_dtm0_tid *tid, int rand) |
|
static bool | tid_check (const struct m0_dtm0_tid *tid, int rand) |
|
static int | txd_init (struct m0_dtm0_tx_desc *txd, int rand) |
|
static void | txd_fini (struct m0_dtm0_tx_desc *txd) |
|
static bool | txd_check (const struct m0_dtm0_tx_desc *txd, int rand) |
|
static int | ut_dl_init_buf (struct m0_buf *buf, int rand) |
|
static void | ut_dl_fini_buf (struct m0_buf *buf) |
|
static bool | ut_dl_verify_buf (struct m0_buf *buf, int rand) |
|
static int | ut_dl_init (struct m0_dtm0_tx_desc *txd, struct m0_buf *buf, int rand) |
|
static void | ut_dl_fini (struct m0_dtm0_tx_desc *txd, struct m0_buf *buf) |
|
static bool | ut_dl_verify_log_rec (struct m0_dtm0_log_rec *rec, int rand) |
|
void | test_volatile_dtm0_log (void) |
|
static struct m0_be_dtm0_log * | persistent_log_create (void) |
|
static void | persistent_log_destroy (struct m0_be_dtm0_log *log) |
|
static void | persistent_log_operate (struct m0_be_dtm0_log *log) |
|
static void | dtm0_log_check (const struct m0_be_dtm0_log *log) |
|
static void | m0_be_ut_dtm0_log_test (void) |
|
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_DTM |
◆ anonymous enum
Enumerator |
---|
UT_DTM0_LOG_MAX_PA | |
UT_DTM0_LOG_BUF_SIZE | |
UT_DTM0_LOG_MAX_LOG_REC | |
Definition at line 36 of file dtm0_log_ut.c.
◆ dtm0_log_check()
◆ m0_be_ut_dtm0_log_test()
static void m0_be_ut_dtm0_log_test |
( |
void |
| ) |
|
|
static |
◆ p_check()
static bool p_check |
( |
const struct m0_dtm0_tx_pa * |
pa, |
|
|
int |
rand |
|
) |
| |
|
static |
◆ p_init()
◆ p_state_set()
static void p_state_set |
( |
struct m0_dtm0_tx_pa * |
pa, |
|
|
uint32_t |
state |
|
) |
| |
|
static |
◆ persistent_log_create()
◆ persistent_log_destroy()
◆ persistent_log_operate()
◆ test_volatile_dtm0_log()
void test_volatile_dtm0_log |
( |
void |
| ) |
|
◆ tid_check()
static bool tid_check |
( |
const struct m0_dtm0_tid * |
tid, |
|
|
int |
rand |
|
) |
| |
|
static |
◆ tid_init()
static void tid_init |
( |
struct m0_dtm0_tid * |
tid, |
|
|
int |
rand |
|
) |
| |
|
static |
◆ txd_check()
◆ txd_fini()
◆ txd_init()
◆ ut_dl_fini()
◆ ut_dl_fini_buf()
static void ut_dl_fini_buf |
( |
struct m0_buf * |
buf | ) |
|
|
static |
◆ ut_dl_init()
◆ ut_dl_init_buf()
static int ut_dl_init_buf |
( |
struct m0_buf * |
buf, |
|
|
int |
rand |
|
) |
| |
|
static |
◆ ut_dl_verify_buf()
static bool ut_dl_verify_buf |
( |
struct m0_buf * |
buf, |
|
|
int |
rand |
|
) |
| |
|
static |
◆ ut_dl_verify_log_rec()
static bool ut_dl_verify_log_rec |
( |
struct m0_dtm0_log_rec * |
rec, |
|
|
int |
rand |
|
) |
| |
|
static |
◆ dtm0_log_ut
Initial value:= {
.ts_name = "dtm0-log-ut",
.ts_tests = {
}
}
static void m0_be_ut_dtm0_log_test(void)
void test_volatile_dtm0_log(void)
Definition at line 608 of file dtm0_log_ut.c.
◆ seg
◆ ut_be
◆ ut_seg