Motr  M0
tx_regmap.c File Reference
#include "be/tx_regmap.h"
#include "ut/ut.h"
#include "lib/types.h"
#include "lib/arith.h"
#include "lib/misc.h"
#include "lib/string.h"
#include "be/ut/helper.h"
Include dependency graph for tx_regmap.c:

Go to the source code of this file.

Data Structures

struct  be_ut_rdt_reg_d
 
struct  be_ut_test_reg
 
struct  be_ut_test_reg_suite
 

Macros

#define LOGD(...)
 
#define BUT_TR(begin, end, do_insert, desired_nr, desired_len)
 
#define BUT_TRA_NAME(name)   be_ut_tra_##name
 
#define DEFINE_BUT_TRA(name, ...)   static struct be_ut_test_reg BUT_TRA_NAME(name)[] = { __VA_ARGS__ }
 
#define BUT_TRS(name)
 

Enumerations

enum  { BE_UT_RDT_SIZE = 0x10, BE_UT_RDT_R_SIZE = 0x4, BE_UT_RDT_ITER = 0x10000 }
 
enum  { BE_UT_REGMAP_ITER = 0x10000, BE_UT_REGMAP_LEN = 0x20, BE_UT_REGMAP_R_SIZE = 0x10 }
 
enum  {
  BE_UT_RA_SEG_SIZE = 0x10000, BE_UT_RA_TEST_NR = 0x100, BE_UT_RA_R_SIZE = 0x10, BE_UT_RA_SIZE = 0x20,
  BE_UT_RA_ITER = 0x10000
}
 
enum  {
  BE_UT_RA_MERGE_SEG_SIZE = 0x10000, BE_UT_RA_MERGE_R_SIZE_MIN = 1, BE_UT_RA_MERGE_R_SIZE_MAX = 4, BE_UT_RA_MERGE_R_SPACE_MIN = 0,
  BE_UT_RA_MERGE_R_SPACE_MAX = 2, BE_UT_RA_MERGE_R_NR_MAX = 5, BE_UT_RA_MERGE_SIZE_TOTAL = 16, BE_UT_RA_MERGE_NR = 0x100,
  BE_UT_RA_MERGE_ITER = 0x100
}
 

Functions

static bool be_ut_reg_d_is_equal (const struct m0_be_reg_d *rd1, const struct m0_be_reg_d *rd2)
 
static int be_ut_rdt_del_find (int index)
 
static void be_ut_reg_d_tree_check (void)
 
void m0_be_ut_reg_d_tree (void)
 
 DEFINE_BUT_TRA (ins_simple, BUT_TR(1, 3, true, 1, 2))
 
 DEFINE_BUT_TRA (ins_size1, BUT_TR(1, 2, true, 1, 1))
 
 DEFINE_BUT_TRA (ins2, BUT_TR(1, 3, true, 1, 2), BUT_TR(4, 6, true, 2, 4))
 
 DEFINE_BUT_TRA (ins2_size1, BUT_TR(1, 2, true, 1, 1), BUT_TR(2, 3, true, 2, 2))
 
 DEFINE_BUT_TRA (ins2_adj, BUT_TR(1, 3, true, 1, 2), BUT_TR(3, 5, true, 2, 4))
 
 DEFINE_BUT_TRA (ins2_adj_size1, BUT_TR(1, 3, true, 1, 2), BUT_TR(3, 4, true, 2, 3))
 
 DEFINE_BUT_TRA (ins_replace, BUT_TR(1, 3, true, 1, 2), BUT_TR(1, 3, true, 1, 2))
 
 DEFINE_BUT_TRA (ins_cpy, BUT_TR(3, 8, true, 1, 5), BUT_TR(4, 7, true, 1, 5))
 
 DEFINE_BUT_TRA (ins_cpy_top, BUT_TR(3, 8, true, 1, 5), BUT_TR(5, 8, true, 1, 5))
 
 DEFINE_BUT_TRA (ins_cpy_bot, BUT_TR(3, 8, true, 1, 5), BUT_TR(3, 5, true, 1, 5))
 
 DEFINE_BUT_TRA (del_none, BUT_TR(1, 3, false, 0, 0))
 
 DEFINE_BUT_TRA (del_none_size1, BUT_TR(1, 2, false, 0, 0))
 
 DEFINE_BUT_TRA (del_entire, BUT_TR(1, 3, true, 1, 2), BUT_TR(1, 3, false, 0, 0))
 
 DEFINE_BUT_TRA (del_entire_top, BUT_TR(1, 3, true, 1, 2), BUT_TR(1, 4, false, 0, 0))
 
 DEFINE_BUT_TRA (del_entire_bot, BUT_TR(3, 5, true, 1, 2), BUT_TR(2, 5, false, 0, 0))
 
 DEFINE_BUT_TRA (del_entire_both, BUT_TR(3, 5, true, 1, 2), BUT_TR(2, 6, false, 0, 0))
 
 DEFINE_BUT_TRA (del_nop, BUT_TR(3, 8, true, 1, 5), BUT_TR(4, 7, false, 1, 5))
 
 DEFINE_BUT_TRA (ins2_del1, BUT_TR(3, 5, true, 1, 2), BUT_TR(6, 7, true, 2, 3), BUT_TR(3, 5, false, 1, 1))
 
 DEFINE_BUT_TRA (ins2_del2, BUT_TR(3, 5, true, 1, 2), BUT_TR(6, 7, true, 2, 3), BUT_TR(3, 5, false, 1, 1), BUT_TR(6, 7, false, 0, 0))
 
 DEFINE_BUT_TRA (ins2_del_all, BUT_TR(3, 5, true, 1, 2), BUT_TR(6, 7, true, 2, 3), BUT_TR(3, 7, false, 0, 0))
 
 DEFINE_BUT_TRA (del_cut_top1, BUT_TR(3, 8, true, 1, 5), BUT_TR(5, 9, false, 1, 2))
 
 DEFINE_BUT_TRA (del_cut_top0, BUT_TR(3, 8, true, 1, 5), BUT_TR(5, 8, false, 1, 2))
 
 DEFINE_BUT_TRA (del_cut_bot1, BUT_TR(3, 8, true, 1, 5), BUT_TR(2, 5, false, 1, 3))
 
 DEFINE_BUT_TRA (del_cut_bot0, BUT_TR(3, 8, true, 1, 5), BUT_TR(3, 5, false, 1, 3))
 
 DEFINE_BUT_TRA (del_cut_adj, BUT_TR(3, 5, true, 1, 2), BUT_TR(5, 8, true, 2, 5), BUT_TR(4, 6, false, 2, 3))
 
 DEFINE_BUT_TRA (del_cut_entire_top, BUT_TR(3, 5, true, 1, 2), BUT_TR(5, 8, true, 2, 5), BUT_TR(4, 8, false, 1, 1))
 
 DEFINE_BUT_TRA (del_cut_entire_bot, BUT_TR(3, 5, true, 1, 2), BUT_TR(5, 8, true, 2, 5), BUT_TR(3, 6, false, 1, 2))
 
static void be_ut_rm_fill2 (uintptr_t addr, m0_bcount_t size, unsigned value, bool fill_reg)
 
static void be_ut_rm_fill (const struct m0_be_reg_d *rd, unsigned value, bool fill_reg)
 
static void be_ut_regmap_add (void *data, struct m0_be_reg_d *rd)
 
static void be_ut_regmap_del (void *data, const struct m0_be_reg_d *rd)
 
static void be_ut_regmap_cpy (void *data, const struct m0_be_reg_d *super, const struct m0_be_reg_d *rd)
 
static void be_ut_regmap_cut (void *data, struct m0_be_reg_d *rd, m0_bcount_t cut_at_start, m0_bcount_t cut_at_end)
 
static void be_ut_regmap_init (void)
 
static void be_ut_regmap_fini (void)
 
static void be_ut_regmap_data_copy (void)
 
static void be_ut_regmap_print_d (unsigned d, int i)
 
static void be_ut_regmap_data_cmp (const struct m0_be_reg_d *r, unsigned desired, bool nop)
 
static void be_ut_regmap_size_length_check (size_t desired_size, m0_bcount_t desired_length, bool do_check)
 
static bool be_ut_regmap_nop (m0_bcount_t begin, m0_bcount_t end, bool do_insert)
 
static void be_ut_regmap_do (m0_bcount_t begin, m0_bcount_t end, bool do_insert)
 
void m0_be_ut_regmap_simple (void)
 
void m0_be_ut_regmap_random (void)
 
static m0_bindex_t be_ut_reg_area_addr2offs (void *addr)
 
static void * be_ut_reg_area_offs2addr (m0_bindex_t offs)
 
static void be_ut_reg_area_reset (bool reset_save)
 
static void be_ut_reg_area_init (m0_bindex_t nr)
 
static void be_ut_reg_area_fini (void)
 
static void be_ut_reg_area_fill (struct m0_be_reg_d *rd)
 
static void be_ut_reg_area_fill_save (struct m0_be_reg_d *rd)
 
static void be_ut_reg_area_get (void)
 
static void be_ut_reg_area_size_length_check (size_t desired_size, m0_bcount_t desired_length, bool do_check)
 
static void be_ut_reg_area_check (bool do_insert, struct m0_be_reg_d *rd)
 
static void be_ut_reg_area_rand (void)
 
static void be_ut_reg_area_do (m0_bcount_t begin, m0_bcount_t end, bool do_insert)
 
void m0_be_ut_reg_area_simple (void)
 
void m0_be_ut_reg_area_random (void)
 
static unsigned be_ut_reg_area_merge_rand (unsigned min, unsigned max)
 
static m0_bindex_t be_ut_reg_area_merge_addr2offs (void *addr)
 
static void * be_ut_reg_area_merge_offs2addr (m0_bindex_t offs)
 
static void be_ut_reg_area_merge_ra_add (struct m0_be_reg_area *ra, m0_bindex_t begin, m0_bcount_t size, void *buf)
 
static void be_ut_reg_area_merge_rand_ra (struct m0_be_reg_area *ra)
 
static void be_ut_reg_area_arr_copy (unsigned char *arr, m0_bcount_t arr_size, struct m0_be_reg_area *ra, bool clear_arr)
 
static void be_ut_reg_area_merge_pre (struct m0_be_reg_area *ra)
 
static void be_ut_reg_area_merge_in (struct m0_be_reg_area *ra)
 
static void be_ut_reg_area_merge_post (struct m0_be_reg_area *ra)
 
void m0_be_ut_reg_area_merge (void)
 

Variables

static struct be_ut_rdt_reg_d be_ut_rdt_rd [BE_UT_RDT_SIZE]
 
static struct m0_be_reg_d_tree be_ut_rdt
 
static struct be_ut_test_reg_suite be_ut_test_regs []
 
static struct m0_be_regmap be_ut_rm_regmap
 
static const unsigned be_ut_rm_unused = ~0
 
static unsigned be_ut_rm_data [BE_UT_REGMAP_LEN]
 
static unsigned be_ut_rm_reg [BE_UT_REGMAP_LEN]
 
static unsigned be_ut_rm_data_copy [BE_UT_REGMAP_LEN]
 
static unsigned be_ut_rm_iteration
 
static void * be_ut_rm_ops_data = (void *) 42
 
static const struct m0_be_regmap_ops be_ut_regmap_ops
 
static struct m0_be_reg_area be_ut_ra_reg_area
 
static struct m0_be_segbe_ut_ra_seg
 
static uint64_t be_ut_ra_rand_seed
 
static char be_ut_ra_save [BE_UT_RA_SIZE]
 
static char be_ut_ra_data [BE_UT_RA_SIZE]
 
static char be_ut_ra_reg [BE_UT_RA_SIZE]
 
static struct m0_be_segbe_ut_ra_merge_seg
 
static uint64_t be_ut_ra_merge_seed
 
static unsigned char be_ut_ra_merge_pre [BE_UT_RA_MERGE_SIZE_TOTAL]
 
static unsigned char be_ut_ra_merged [BE_UT_RA_MERGE_SIZE_TOTAL]
 
static unsigned char be_ut_ra_merge_post [BE_UT_RA_MERGE_SIZE_TOTAL]
 

Macro Definition Documentation

◆ BUT_TR

#define BUT_TR (   begin,
  end,
  do_insert,
  desired_nr,
  desired_len 
)
Value:
{ \
.bur_begin = (begin), \
.bur_end = (end), \
.bur_do_insert = (do_insert), \
.bur_desired_nr = (desired_nr), \
.bur_desired_len = (desired_len), \
}

Definition at line 158 of file tx_regmap.c.

◆ BUT_TRA_NAME

#define BUT_TRA_NAME (   name)    be_ut_tra_##name

Definition at line 168 of file tx_regmap.c.

◆ BUT_TRS

#define BUT_TRS (   name)
Value:
{ \
.trs_name = #name, \
.trs_test = BUT_TRA_NAME(name), \
.trs_nr = ARRAY_SIZE(BUT_TRA_NAME(name)), \
}
#define BUT_TRA_NAME(name)
Definition: tx_regmap.c:168
const char * name
Definition: trace.c:110
#define ARRAY_SIZE(a)
Definition: misc.h:45

Definition at line 172 of file tx_regmap.c.

◆ DEFINE_BUT_TRA

#define DEFINE_BUT_TRA (   name,
  ... 
)    static struct be_ut_test_reg BUT_TRA_NAME(name)[] = { __VA_ARGS__ }

Definition at line 169 of file tx_regmap.c.

◆ LOGD

#define LOGD (   ...)

Definition at line 37 of file tx_regmap.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BE_UT_RDT_SIZE 
BE_UT_RDT_R_SIZE 
BE_UT_RDT_ITER 

Definition at line 39 of file tx_regmap.c.

◆ anonymous enum

anonymous enum
Enumerator
BE_UT_REGMAP_ITER 
BE_UT_REGMAP_LEN 
BE_UT_REGMAP_R_SIZE 

Definition at line 137 of file tx_regmap.c.

◆ anonymous enum

anonymous enum
Enumerator
BE_UT_RA_SEG_SIZE 
BE_UT_RA_TEST_NR 
BE_UT_RA_R_SIZE 
BE_UT_RA_SIZE 
BE_UT_RA_ITER 

Definition at line 563 of file tx_regmap.c.

◆ anonymous enum

anonymous enum
Enumerator
BE_UT_RA_MERGE_SEG_SIZE 
BE_UT_RA_MERGE_R_SIZE_MIN 
BE_UT_RA_MERGE_R_SIZE_MAX 
BE_UT_RA_MERGE_R_SPACE_MIN 
BE_UT_RA_MERGE_R_SPACE_MAX 
BE_UT_RA_MERGE_R_NR_MAX 
BE_UT_RA_MERGE_SIZE_TOTAL 
BE_UT_RA_MERGE_NR 
BE_UT_RA_MERGE_ITER 

Definition at line 806 of file tx_regmap.c.

Function Documentation

◆ be_ut_rdt_del_find()

static int be_ut_rdt_del_find ( int  index)
static

Definition at line 60 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_reg_area_addr2offs()

static m0_bindex_t be_ut_reg_area_addr2offs ( void *  addr)
static

Definition at line 578 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_reg_area_arr_copy()

static void be_ut_reg_area_arr_copy ( unsigned char *  arr,
m0_bcount_t  arr_size,
struct m0_be_reg_area ra,
bool  clear_arr 
)
static

Definition at line 890 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_check()

static void be_ut_reg_area_check ( bool  do_insert,
struct m0_be_reg_d rd 
)
static

Definition at line 663 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_do()

static void be_ut_reg_area_do ( m0_bcount_t  begin,
m0_bcount_t  end,
bool  do_insert 
)
static

XXX TODO check other fields of m0_be_reg_d

Definition at line 709 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_fill()

static void be_ut_reg_area_fill ( struct m0_be_reg_d rd)
static

Definition at line 616 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_fill_save()

static void be_ut_reg_area_fill_save ( struct m0_be_reg_d rd)
static

Definition at line 629 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_fini()

static void be_ut_reg_area_fini ( void  )
static

Definition at line 611 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_get()

static void be_ut_reg_area_get ( void  )
static

Definition at line 641 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_init()

static void be_ut_reg_area_init ( m0_bindex_t  nr)
static

Definition at line 600 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_merge_addr2offs()

static m0_bindex_t be_ut_reg_area_merge_addr2offs ( void *  addr)
static

Definition at line 832 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_reg_area_merge_in()

static void be_ut_reg_area_merge_in ( struct m0_be_reg_area ra)
static

Definition at line 934 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_merge_offs2addr()

static void* be_ut_reg_area_merge_offs2addr ( m0_bindex_t  offs)
static

Definition at line 838 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_reg_area_merge_post()

static void be_ut_reg_area_merge_post ( struct m0_be_reg_area ra)
static

Definition at line 954 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_merge_pre()

static void be_ut_reg_area_merge_pre ( struct m0_be_reg_area ra)
static

Definition at line 918 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_merge_ra_add()

static void be_ut_reg_area_merge_ra_add ( struct m0_be_reg_area ra,
m0_bindex_t  begin,
m0_bcount_t  size,
void *  buf 
)
static

Definition at line 844 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_merge_rand()

static unsigned be_ut_reg_area_merge_rand ( unsigned  min,
unsigned  max 
)
static

Definition at line 827 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_merge_rand_ra()

static void be_ut_reg_area_merge_rand_ra ( struct m0_be_reg_area ra)
static

Definition at line 860 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_offs2addr()

static void* be_ut_reg_area_offs2addr ( m0_bindex_t  offs)
static

Definition at line 583 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_reg_area_rand()

static void be_ut_reg_area_rand ( void  )
static

Definition at line 695 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_area_reset()

static void be_ut_reg_area_reset ( bool  reset_save)
static

Definition at line 589 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_reg_area_size_length_check()

static void be_ut_reg_area_size_length_check ( size_t  desired_size,
m0_bcount_t  desired_length,
bool  do_check 
)
static

Definition at line 652 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_reg_d_is_equal()

static bool be_ut_reg_d_is_equal ( const struct m0_be_reg_d rd1,
const struct m0_be_reg_d rd2 
)
static

Definition at line 53 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_reg_d_tree_check()

static void be_ut_reg_d_tree_check ( void  )
static

Definition at line 71 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_regmap_add()

static void be_ut_regmap_add ( void *  data,
struct m0_be_reg_d rd 
)
static

Definition at line 312 of file tx_regmap.c.

Here is the call graph for this function:

◆ be_ut_regmap_cpy()

static void be_ut_regmap_cpy ( void *  data,
const struct m0_be_reg_d super,
const struct m0_be_reg_d rd 
)
static

Definition at line 324 of file tx_regmap.c.

Here is the call graph for this function:

◆ be_ut_regmap_cut()

static void be_ut_regmap_cut ( void *  data,
struct m0_be_reg_d rd,
m0_bcount_t  cut_at_start,
m0_bcount_t  cut_at_end 
)
static

Definition at line 332 of file tx_regmap.c.

Here is the call graph for this function:

◆ be_ut_regmap_data_cmp()

static void be_ut_regmap_data_cmp ( const struct m0_be_reg_d r,
unsigned  desired,
bool  nop 
)
static

Definition at line 395 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_regmap_data_copy()

static void be_ut_regmap_data_copy ( void  )
static

Definition at line 380 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_regmap_del()

static void be_ut_regmap_del ( void *  data,
const struct m0_be_reg_d rd 
)
static

Definition at line 318 of file tx_regmap.c.

Here is the call graph for this function:

◆ be_ut_regmap_do()

static void be_ut_regmap_do ( m0_bcount_t  begin,
m0_bcount_t  end,
bool  do_insert 
)
static

XXX TODO check other fields of m0_be_reg_d

Definition at line 484 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_regmap_fini()

static void be_ut_regmap_fini ( void  )
static

Definition at line 375 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_regmap_init()

static void be_ut_regmap_init ( void  )
static

Definition at line 359 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_regmap_nop()

static bool be_ut_regmap_nop ( m0_bcount_t  begin,
m0_bcount_t  end,
bool  do_insert 
)
static

Definition at line 463 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_regmap_print_d()

static void be_ut_regmap_print_d ( unsigned  d,
int  i 
)
static

Definition at line 385 of file tx_regmap.c.

Here is the caller graph for this function:

◆ be_ut_regmap_size_length_check()

static void be_ut_regmap_size_length_check ( size_t  desired_size,
m0_bcount_t  desired_length,
bool  do_check 
)
static

Definition at line 427 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_rm_fill()

static void be_ut_rm_fill ( const struct m0_be_reg_d rd,
unsigned  value,
bool  fill_reg 
)
static

Definition at line 304 of file tx_regmap.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_ut_rm_fill2()

static void be_ut_rm_fill2 ( uintptr_t  addr,
m0_bcount_t  size,
unsigned  value,
bool  fill_reg 
)
static

Definition at line 286 of file tx_regmap.c.

Here is the caller graph for this function:

◆ DEFINE_BUT_TRA() [1/27]

DEFINE_BUT_TRA ( ins_simple  ,
BUT_TR(1, 3, true, 1, 2)   
)

◆ DEFINE_BUT_TRA() [2/27]

DEFINE_BUT_TRA ( ins_size1  ,
BUT_TR(1, 2, true, 1, 1)   
)

◆ DEFINE_BUT_TRA() [3/27]

DEFINE_BUT_TRA ( ins2  ,
BUT_TR(1, 3, true, 1, 2)  ,
BUT_TR(4, 6, true, 2, 4)   
)

◆ DEFINE_BUT_TRA() [4/27]

DEFINE_BUT_TRA ( ins2_size1  ,
BUT_TR(1, 2, true, 1, 1)  ,
BUT_TR(2, 3, true, 2, 2)   
)

◆ DEFINE_BUT_TRA() [5/27]

DEFINE_BUT_TRA ( ins2_adj  ,
BUT_TR(1, 3, true, 1, 2)  ,
BUT_TR(3, 5, true, 2, 4)   
)

◆ DEFINE_BUT_TRA() [6/27]

DEFINE_BUT_TRA ( ins2_adj_size1  ,
BUT_TR(1, 3, true, 1, 2)  ,
BUT_TR(3, 4, true, 2, 3)   
)

◆ DEFINE_BUT_TRA() [7/27]

DEFINE_BUT_TRA ( ins_replace  ,
BUT_TR(1, 3, true, 1, 2)  ,
BUT_TR(1, 3, true, 1, 2)   
)

◆ DEFINE_BUT_TRA() [8/27]

DEFINE_BUT_TRA ( ins_cpy  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(4, 7, true, 1, 5)   
)

◆ DEFINE_BUT_TRA() [9/27]

DEFINE_BUT_TRA ( ins_cpy_top  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(5, 8, true, 1, 5)   
)

◆ DEFINE_BUT_TRA() [10/27]

DEFINE_BUT_TRA ( ins_cpy_bot  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(3, 5, true, 1, 5)   
)

◆ DEFINE_BUT_TRA() [11/27]

DEFINE_BUT_TRA ( del_none  ,
BUT_TR(1, 3, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [12/27]

DEFINE_BUT_TRA ( del_none_size1  ,
BUT_TR(1, 2, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [13/27]

DEFINE_BUT_TRA ( del_entire  ,
BUT_TR(1, 3, true, 1, 2)  ,
BUT_TR(1, 3, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [14/27]

DEFINE_BUT_TRA ( del_entire_top  ,
BUT_TR(1, 3, true, 1, 2)  ,
BUT_TR(1, 4, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [15/27]

DEFINE_BUT_TRA ( del_entire_bot  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(2, 5, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [16/27]

DEFINE_BUT_TRA ( del_entire_both  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(2, 6, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [17/27]

DEFINE_BUT_TRA ( del_nop  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(4, 7, false, 1, 5)   
)

◆ DEFINE_BUT_TRA() [18/27]

DEFINE_BUT_TRA ( ins2_del1  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(6, 7, true, 2, 3)  ,
BUT_TR(3, 5, false, 1, 1)   
)

◆ DEFINE_BUT_TRA() [19/27]

DEFINE_BUT_TRA ( ins2_del2  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(6, 7, true, 2, 3)  ,
BUT_TR(3, 5, false, 1, 1)  ,
BUT_TR(6, 7, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [20/27]

DEFINE_BUT_TRA ( ins2_del_all  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(6, 7, true, 2, 3)  ,
BUT_TR(3, 7, false, 0, 0)   
)

◆ DEFINE_BUT_TRA() [21/27]

DEFINE_BUT_TRA ( del_cut_top1  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(5, 9, false, 1, 2)   
)

◆ DEFINE_BUT_TRA() [22/27]

DEFINE_BUT_TRA ( del_cut_top0  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(5, 8, false, 1, 2)   
)

◆ DEFINE_BUT_TRA() [23/27]

DEFINE_BUT_TRA ( del_cut_bot1  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(2, 5, false, 1, 3)   
)

◆ DEFINE_BUT_TRA() [24/27]

DEFINE_BUT_TRA ( del_cut_bot0  ,
BUT_TR(3, 8, true, 1, 5)  ,
BUT_TR(3, 5, false, 1, 3)   
)

◆ DEFINE_BUT_TRA() [25/27]

DEFINE_BUT_TRA ( del_cut_adj  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(5, 8, true, 2, 5)  ,
BUT_TR(4, 6, false, 2, 3)   
)

◆ DEFINE_BUT_TRA() [26/27]

DEFINE_BUT_TRA ( del_cut_entire_top  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(5, 8, true, 2, 5)  ,
BUT_TR(4, 8, false, 1, 1)   
)

◆ DEFINE_BUT_TRA() [27/27]

DEFINE_BUT_TRA ( del_cut_entire_bot  ,
BUT_TR(3, 5, true, 1, 2)  ,
BUT_TR(5, 8, true, 2, 5)  ,
BUT_TR(3, 6, false, 1, 2)   
)

◆ m0_be_ut_reg_area_merge()

void m0_be_ut_reg_area_merge ( void  )

Definition at line 978 of file tx_regmap.c.

Here is the call graph for this function:

◆ m0_be_ut_reg_area_random()

void m0_be_ut_reg_area_random ( void  )

Definition at line 780 of file tx_regmap.c.

Here is the call graph for this function:

◆ m0_be_ut_reg_area_simple()

void m0_be_ut_reg_area_simple ( void  )

Definition at line 742 of file tx_regmap.c.

Here is the call graph for this function:

◆ m0_be_ut_reg_d_tree()

void m0_be_ut_reg_d_tree ( void  )

Definition at line 91 of file tx_regmap.c.

Here is the call graph for this function:

◆ m0_be_ut_regmap_random()

void m0_be_ut_regmap_random ( void  )

Definition at line 544 of file tx_regmap.c.

Here is the call graph for this function:

◆ m0_be_ut_regmap_simple()

void m0_be_ut_regmap_simple ( void  )

Definition at line 519 of file tx_regmap.c.

Here is the call graph for this function:

Variable Documentation

◆ be_ut_ra_data

char be_ut_ra_data[BE_UT_RA_SIZE]
static

Definition at line 575 of file tx_regmap.c.

◆ be_ut_ra_merge_post

unsigned char be_ut_ra_merge_post[BE_UT_RA_MERGE_SIZE_TOTAL]
static

Definition at line 824 of file tx_regmap.c.

◆ be_ut_ra_merge_pre

unsigned char be_ut_ra_merge_pre[BE_UT_RA_MERGE_SIZE_TOTAL]
static

Definition at line 822 of file tx_regmap.c.

◆ be_ut_ra_merge_seed

uint64_t be_ut_ra_merge_seed
static

Definition at line 821 of file tx_regmap.c.

◆ be_ut_ra_merge_seg

struct m0_be_seg* be_ut_ra_merge_seg
static

Definition at line 820 of file tx_regmap.c.

◆ be_ut_ra_merged

unsigned char be_ut_ra_merged[BE_UT_RA_MERGE_SIZE_TOTAL]
static

Definition at line 823 of file tx_regmap.c.

◆ be_ut_ra_rand_seed

uint64_t be_ut_ra_rand_seed
static

Definition at line 573 of file tx_regmap.c.

◆ be_ut_ra_reg

char be_ut_ra_reg[BE_UT_RA_SIZE]
static

Definition at line 576 of file tx_regmap.c.

◆ be_ut_ra_reg_area

struct m0_be_reg_area be_ut_ra_reg_area
static

Definition at line 571 of file tx_regmap.c.

◆ be_ut_ra_save

char be_ut_ra_save[BE_UT_RA_SIZE]
static

Definition at line 574 of file tx_regmap.c.

◆ be_ut_ra_seg

struct m0_be_seg* be_ut_ra_seg
static

Definition at line 572 of file tx_regmap.c.

◆ be_ut_rdt

struct m0_be_reg_d_tree be_ut_rdt
static

Definition at line 51 of file tx_regmap.c.

◆ be_ut_rdt_rd

struct be_ut_rdt_reg_d be_ut_rdt_rd[BE_UT_RDT_SIZE]
static

Definition at line 50 of file tx_regmap.c.

◆ be_ut_regmap_ops

const struct m0_be_regmap_ops be_ut_regmap_ops
static
Initial value:
= {
.rmo_add = be_ut_regmap_add,
.rmo_del = be_ut_regmap_del,
.rmo_cpy = be_ut_regmap_cpy,
.rmo_cut = be_ut_regmap_cut
}
static void be_ut_regmap_del(void *data, const struct m0_be_reg_d *rd)
Definition: tx_regmap.c:318
static void be_ut_regmap_add(void *data, struct m0_be_reg_d *rd)
Definition: tx_regmap.c:312
static void be_ut_regmap_cut(void *data, struct m0_be_reg_d *rd, m0_bcount_t cut_at_start, m0_bcount_t cut_at_end)
Definition: tx_regmap.c:332
static void be_ut_regmap_cpy(void *data, const struct m0_be_reg_d *super, const struct m0_be_reg_d *rd)
Definition: tx_regmap.c:324

Definition at line 352 of file tx_regmap.c.

◆ be_ut_rm_data

unsigned be_ut_rm_data[BE_UT_REGMAP_LEN]
static

Definition at line 280 of file tx_regmap.c.

◆ be_ut_rm_data_copy

unsigned be_ut_rm_data_copy[BE_UT_REGMAP_LEN]
static

Definition at line 282 of file tx_regmap.c.

◆ be_ut_rm_iteration

unsigned be_ut_rm_iteration
static

Definition at line 283 of file tx_regmap.c.

◆ be_ut_rm_ops_data

void* be_ut_rm_ops_data = (void *) 42
static

Definition at line 284 of file tx_regmap.c.

◆ be_ut_rm_reg

unsigned be_ut_rm_reg[BE_UT_REGMAP_LEN]
static

Definition at line 281 of file tx_regmap.c.

◆ be_ut_rm_regmap

struct m0_be_regmap be_ut_rm_regmap
static

Definition at line 278 of file tx_regmap.c.

◆ be_ut_rm_unused

const unsigned be_ut_rm_unused = ~0
static

Definition at line 279 of file tx_regmap.c.

◆ be_ut_test_regs

struct be_ut_test_reg_suite be_ut_test_regs[]
static
Initial value:
= {
BUT_TRS(ins_simple),
BUT_TRS(ins_size1),
BUT_TRS(ins2),
BUT_TRS(ins2_size1),
BUT_TRS(ins2_adj),
BUT_TRS(ins2_adj_size1),
BUT_TRS(ins_replace),
BUT_TRS(ins_cpy),
BUT_TRS(ins_cpy_top),
BUT_TRS(ins_cpy_bot),
BUT_TRS(del_none),
BUT_TRS(del_none_size1),
BUT_TRS(del_entire),
BUT_TRS(del_entire_top),
BUT_TRS(del_entire_bot),
BUT_TRS(del_entire_both),
BUT_TRS(del_nop),
BUT_TRS(ins2_del1),
BUT_TRS(ins2_del2),
BUT_TRS(ins2_del_all),
BUT_TRS(del_cut_top1),
BUT_TRS(del_cut_top0),
BUT_TRS(del_cut_bot1),
BUT_TRS(del_cut_bot0),
BUT_TRS(del_cut_adj),
BUT_TRS(del_cut_entire_top),
BUT_TRS(del_cut_entire_bot),
}
#define BUT_TRS(name)
Definition: tx_regmap.c:172

Definition at line 243 of file tx_regmap.c.