Motr  M0
common.c File Reference
#include "fd/fd_internal.h"
#include "fd/ut/common.h"
#include "ut/ut.h"
#include "lib/memory.h"
#include "lib/errno.h"
#include "lib/arith.h"
#include "lib/trace.h"
Include dependency graph for common.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB
 

Functions

M0_INTERNAL void fd_ut_symm_tree_create (struct m0_fd_tree *tree, enum tree_gen_type tg_type, uint64_t *child_nr, uint64_t depth)
 
M0_INTERNAL void fd_ut_children_populate (uint64_t *children, uint32_t depth)
 
M0_INTERNAL int fd_ut_tree_level_populate (struct m0_fd_tree *tree, uint64_t max_children, uint16_t level, enum tree_attr ta)
 
M0_INTERNAL int fd_ut_tree_init (struct m0_fd_tree *tree, uint64_t tree_depth)
 
M0_INTERNAL void fd_ut_symm_tree_get (struct m0_fd_tree *tree, uint64_t *children_nr)
 
M0_INTERNAL uint64_t fd_ut_random_cnt_get (uint64_t max_cnt)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB

Definition at line 30 of file common.c.

Function Documentation

◆ fd_ut_children_populate()

M0_INTERNAL void fd_ut_children_populate ( uint64_t *  children,
uint32_t  depth 
)

Definition at line 56 of file common.c.

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

◆ fd_ut_random_cnt_get()

M0_INTERNAL uint64_t fd_ut_random_cnt_get ( uint64_t  max_cnt)

Definition at line 159 of file common.c.

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

◆ fd_ut_symm_tree_create()

M0_INTERNAL void fd_ut_symm_tree_create ( struct m0_fd_tree tree,
enum tree_gen_type  tg_type,
uint64_t *  child_nr,
uint64_t  depth 
)

Definition at line 33 of file common.c.

Here is the call graph for this function:

◆ fd_ut_symm_tree_get()

M0_INTERNAL void fd_ut_symm_tree_get ( struct m0_fd_tree tree,
uint64_t *  children_nr 
)

Definition at line 130 of file common.c.

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

◆ fd_ut_tree_init()

M0_INTERNAL int fd_ut_tree_init ( struct m0_fd_tree tree,
uint64_t  tree_depth 
)

Definition at line 114 of file common.c.

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

◆ fd_ut_tree_level_populate()

M0_INTERNAL int fd_ut_tree_level_populate ( struct m0_fd_tree tree,
uint64_t  max_children,
uint16_t  level,
enum tree_attr  ta 
)

Definition at line 69 of file common.c.

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