|
Motr
M0
|
#include "stob/cache.h"#include "lib/memory.h"#include "lib/thread.h"#include "lib/arith.h"#include "ut/ut.h"#include "ut/threads.h"#include "stob/stob.h"#include "stob/stob_internal.h"
Go to the source code of this file.
Data Structures | |
| struct | stob_ut_cache_ctx |
Enumerations | |
| enum | { STOB_UT_CACHE_THREAD_NR = 0x20, STOB_UT_CACHE_ITER_NR = 0x2000, STOB_UT_CACHE_STOB_NR = 0x40, STOB_UT_CACHE_COLD_SIZE = 0x10 } |
Functions | |
| static void | stob_ut_cache_thread (struct stob_ut_cache_ctx *ctx) |
| static void | stob_ut_cache_evict_cb (struct m0_stob_cache *cache, struct m0_stob *stob) |
| M0_UT_THREADS_DEFINE (stob_cache, stob_ut_cache_thread) | |
| static void | stob_ut_cache_test (size_t thread_nr, size_t iter_nr, size_t idle_size) |
| void | m0_stob_ut_cache (void) |
| void | m0_stob_ut_cache_idle_size0 (void) |
Variables | |
| static struct m0_stob | stob_ut_cache_stobs [STOB_UT_CACHE_STOB_NR] |
| static struct m0_stob_cache | stob_ut_cache |
| anonymous enum |
| void m0_stob_ut_cache | ( | void | ) |
| void m0_stob_ut_cache_idle_size0 | ( | void | ) |
| M0_UT_THREADS_DEFINE | ( | stob_cache | , |
| stob_ut_cache_thread | |||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |