Go to the source code of this file.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
◆ anonymous enum
◆ anonymous enum
◆ add()
"add" test: add one record in empty context, check that the generated trace is valid.
Definition at line 233 of file base.c.
◆ add_var()
static void add_var |
( |
void |
| ) |
|
|
static |
"add-var" test: add a number of records with variably-sized payloads in a non-empty context, check that the generated trace is valid.
Definition at line 255 of file base.c.
◆ check_submit()
◆ full()
static void full |
( |
void |
| ) |
|
|
static |
"full" test: add records with variable identifiers until a number of trace buffers is fully occupied. Check the traces.
Definition at line 334 of file base.c.
◆ full_submit()
◆ idle_idle()
◆ init_fini()
static void init_fini |
( |
void |
| ) |
|
|
static |
"init-fini" test.
Smoke test: initialise and finalise addb2 machine.
Definition at line 38 of file base.c.
◆ push0_pop()
static void push0_pop |
( |
void |
| ) |
|
|
static |
"push0-pop" test.
Push a label with empty payload, pop it; check that the generated trace is valid.
Definition at line 138 of file base.c.
◆ push5_pop()
static void push5_pop |
( |
void |
| ) |
|
|
static |
"push5-pop" test.
Push a label, pop it, check that the generated trace is valid.
Definition at line 163 of file base.c.
◆ push_pop()
static void push_pop |
( |
void |
| ) |
|
|
static |
"push-pop" test.
Push one label, pop it; check that the generated trace is valid.
Definition at line 111 of file base.c.
◆ pushN_popN()
static void pushN_popN |
( |
void |
| ) |
|
|
static |
"push^N-pop^N" test.
Push a few labels, pop them all, check that the generated trace is valid.
Definition at line 193 of file base.c.
◆ sensor_depth()
static void sensor_depth |
( |
void |
| ) |
|
|
static |
"sensor-depth" test: create a depth context, add a sensor in it, force trace buffer to completion. Check that the context and sensor are reprodced in the next trace buffer.
Definition at line 402 of file base.c.
◆ sensor_submit()
◆ stop_idle()
static void stop_idle |
( |
void |
| ) |
|
|
static |
"stop-idle" test: check that m0_addb2_stop() works correctly.
Definition at line 357 of file base.c.
◆ trace_eq()
◆ addb2_base_ut
Initial value:= {
.ts_name = "addb2-base",
.ts_tests = {
}
}
static void sensor_depth(void)
static void push0_pop(void)
static void pushN_popN(void)
static void push5_pop(void)
static void add_var(void)
static void push_pop(void)
static void init_fini(void)
static void stop_idle(void)
Definition at line 431 of file base.c.
◆ added
◆ busy
◆ depth
◆ enough
◆ found
◆ idled
◆ keep
◆ null_ops
Initial value:
Definition at line 30 of file base.c.
◆ payload
Initial value:= {
0x7472756374206d30,
0x5f61646462325f74,
0x726163652073686f,
0x756c646265203d20,
0x7b0a09092e74725f,
0x6e72203d20332c0a,
0x09092e74725f626f,
0x6479203d20287569,
0x3131303030303030,
0x303030303030207c,
0x204c4142454c5f49,
0x445f302c202f2a20,
0x505553482031372c,
0x2031202a2f0a0909,
0x094c4142454c5f56,
0x414c55455f302c20,
0x2020202020202020,
0x2020202020202020,
0x2f2a207061796c6f,
0x6164202a2f0a0909,
0x0930783066303030,
0x3030303030303030
}
Definition at line 65 of file base.c.
◆ shouldbe
◆ total
◆ used