|
Motr
M0
|
#include <stdlib.h>#include <stdio.h>#include <unistd.h>#include <sys/stat.h>#include <sys/types.h>#include "lib/misc.h"#include "lib/memory.h"#include "lib/errno.h"#include "lib/finject.h"#include "lib/ub.h"#include "ut/stob.h"#include "ut/ut.h"#include "lib/assert.h"#include "lib/arith.h"#include "stob/domain.h"#include "stob/io.h"#include "stob/stob.h"#include "fol/fol.h"#include "balloc/balloc.h"
Go to the source code of this file.
Macros | |
| #define | AD_ADIEU_CS_SZ 16 |
Enumerations | |
| enum | { NR = 4, NR_SORT = 256, MIN_BUF_SIZE = 4096, MIN_BUF_SIZE_IN_BLOCKS = 4 } |
| enum | { M0_STOB_UT_DOMAIN_KEY = 0x01, M0_STOB_UT_STOB_KEY = 0x02 } |
| enum | { UB_ITER = 100, UB_ITER_SORT = 100000 } |
Functions | |
| static int | test_adieu_init (const char *location, const char *dom_cfg, const char *stob_cfg) |
| static void | test_adieu_fini (void) |
| static void | test_write (int i) |
| static void | test_read (int i) |
| static void | test_adieu (const char *path) |
| void | m0_stob_ut_adieu_linux (void) |
| void | m0_stob_ut_adieu_perf (void) |
| static void | ub_write (int i) |
| static void | ub_read (int i) |
| static void | ub_iovec_init () |
| static void | ub_iovec_invert () |
| static void | ub_iovec_sort () |
| static void | ub_iovec_sort_invert () |
| static int | ub_init (const char *opts M0_UNUSED) |
| static void | ub_fini (void) |
Variables | |
| static const char | linux_location [] = "linuxstob:./__s" |
| static const char | perf_location [] = "perfstob:./__s" |
| static struct m0_stob_domain * | dom |
| static struct m0_stob * | obj |
| static const char | linux_path [] = "./__s/o/100000000000000:2" |
| static const char | perf_path [] = "./__s/backstore/o/100000000000000:2" |
| static struct m0_stob_io | io |
| static m0_bcount_t | user_vec [NR] |
| static char * | user_buf [NR] |
| static char * | user_cksm_buf [NR] |
| static char * | read_buf [NR] |
| static char * | read_cksm_buf [NR] |
| static char * | user_bufs [NR] |
| static char * | read_bufs [NR] |
| static m0_bindex_t | stob_vec [NR] |
| static struct m0_clink | clink |
| static FILE * | f |
| static uint32_t | block_shift |
| static uint32_t | buf_size |
| static m0_bcount_t | user_vec1 [NR_SORT] |
| static char * | user_bufs1 [NR_SORT] |
| static m0_bindex_t | stob_vec1 [NR_SORT] |
| struct m0_ub_set | m0_adieu_ub |
|
static |
|
static |
|
static |
|
static |