#include "lib/trace.h"
#include "be/alloc.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/thread.h"
#include "lib/arith.h"
#include "lib/finject.h"
#include "ut/ut.h"
#include "be/ut/helper.h"
#include "be/op.h"
#include "be/alloc_internal.h"
Go to the source code of this file.
|
enum | {
BE_UT_ALLOC_SEG_SIZE = 0x40000,
BE_UT_ALLOC_SIZE = 0x80,
BE_UT_ALLOC_SHIFT = 13,
BE_UT_ALLOC_PTR_NR = 0x20,
BE_UT_ALLOC_NR = 0x800,
BE_UT_ALLOC_MT_NR = 0x100,
BE_UT_ALLOC_THR_NR = 0x4
} |
|
enum | {
BE_UT_OOM_SEG_START = 0x1900,
BE_UT_OOM_SEG_STEP = 0x42,
BE_UT_OOM_SEG_STEP_NR = 0x4,
BE_UT_OOM_ALLOC_START = 0x1,
BE_UT_OOM_ALLOC_STEP = 0x1,
BE_UT_OOM_ALLOC_STEP_NR = 0x4
} |
|
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
◆ anonymous enum
Enumerator |
---|
BE_UT_ALLOC_SEG_SIZE | |
BE_UT_ALLOC_SIZE | |
BE_UT_ALLOC_SHIFT | |
BE_UT_ALLOC_PTR_NR | |
BE_UT_ALLOC_NR | |
BE_UT_ALLOC_MT_NR | |
BE_UT_ALLOC_THR_NR | |
Definition at line 40 of file alloc.c.
◆ anonymous enum
Enumerator |
---|
BE_UT_OOM_SEG_START | |
BE_UT_OOM_SEG_STEP | |
BE_UT_OOM_SEG_STEP_NR | |
BE_UT_OOM_ALLOC_START | |
BE_UT_OOM_ALLOC_STEP | |
BE_UT_OOM_ALLOC_STEP_NR | |
Definition at line 241 of file alloc.c.
◆ be_ut_alloc_credit_log()
◆ be_ut_alloc_mt()
static void be_ut_alloc_mt |
( |
int |
nr | ) |
|
|
static |
◆ be_ut_alloc_oom_case()
◆ be_ut_alloc_ptr_handle()
static void be_ut_alloc_ptr_handle |
( |
struct m0_be_allocator * |
a, |
|
|
void ** |
p, |
|
|
uint64_t * |
seed |
|
) |
| |
|
static |
◆ be_ut_alloc_thread()
static void be_ut_alloc_thread |
( |
int |
index | ) |
|
|
static |
◆ m0_be_ut_alloc_concurrent()
M0_INTERNAL void m0_be_ut_alloc_concurrent |
( |
void |
| ) |
|
◆ m0_be_ut_alloc_create_destroy()
M0_INTERNAL void m0_be_ut_alloc_create_destroy |
( |
void |
| ) |
|
◆ m0_be_ut_alloc_info()
M0_INTERNAL void m0_be_ut_alloc_info |
( |
void |
| ) |
|
◆ m0_be_ut_alloc_init_fini()
M0_INTERNAL void m0_be_ut_alloc_init_fini |
( |
void |
| ) |
|
◆ m0_be_ut_alloc_multiple()
M0_INTERNAL void m0_be_ut_alloc_multiple |
( |
void |
| ) |
|
◆ m0_be_ut_alloc_oom()
M0_INTERNAL void m0_be_ut_alloc_oom |
( |
void |
| ) |
|
◆ m0_be_ut_alloc_spare()
M0_INTERNAL void m0_be_ut_alloc_spare |
( |
void |
| ) |
|
◆ be_ut_alloc_backend
◆ be_ut_alloc_seg
◆ be_ut_ts