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

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB
 

Functions

static int tree_populate (struct m0_fd_tree *tree, enum tree_type param_type)
 
static uint32_t geometric_sum (uint16_t r, uint16_t k)
 
static uint32_t int_pow (uint32_t num, uint32_t exp)
 
static void test_cache_init_fini (void)
 
static void test_init_fini (void)
 
static void test_fault_inj (void)
 
static void test_perm_cache (void)
 
static void test_fd_tree (void)
 

Variables

struct m0_ut_suite failure_domains_tree_ut
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB

Definition at line 23 of file fd_tree.c.

Function Documentation

◆ geometric_sum()

static uint32_t geometric_sum ( uint16_t  r,
uint16_t  k 
)
static

Definition at line 140 of file fd_tree.c.

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

◆ int_pow()

static uint32_t int_pow ( uint32_t  num,
uint32_t  exp 
)
static

Definition at line 145 of file fd_tree.c.

Here is the caller graph for this function:

◆ test_cache_init_fini()

static void test_cache_init_fini ( void  )
static

Definition at line 39 of file fd_tree.c.

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

◆ test_fault_inj()

static void test_fault_inj ( void  )
static

Definition at line 102 of file fd_tree.c.

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

◆ test_fd_tree()

static void test_fd_tree ( void  )
static

Definition at line 176 of file fd_tree.c.

Here is the call graph for this function:

◆ test_init_fini()

static void test_init_fini ( void  )
static

Definition at line 80 of file fd_tree.c.

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

◆ test_perm_cache()

static void test_perm_cache ( void  )
static

Definition at line 172 of file fd_tree.c.

Here is the call graph for this function:

◆ tree_populate()

static int tree_populate ( struct m0_fd_tree tree,
enum tree_type  param_type 
)
static

Definition at line 156 of file fd_tree.c.

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

Variable Documentation

◆ failure_domains_tree_ut

struct m0_ut_suite failure_domains_tree_ut
Initial value:
= {
.ts_name = "failure_domains_tree-ut",
.ts_init = NULL,
.ts_fini = NULL,
.ts_tests = {
{"test_fd_tree", test_fd_tree},
{"test_perm_cache", test_perm_cache},
{ NULL, NULL }
}
}
#define NULL
Definition: misc.h:38
static void test_fd_tree(void)
Definition: fd_tree.c:176
static void test_perm_cache(void)
Definition: fd_tree.c:172

Definition at line 182 of file fd_tree.c.