Motr  M0
memory.c File Reference
#include "lib/misc.h"
#include "lib/ub.h"
#include "ut/ut.h"
#include "lib/vec.h"
#include "lib/memory.h"
Include dependency graph for memory.c:

Go to the source code of this file.

Data Structures

struct  test1
 

Enumerations

enum  {
  UB_ITER = 5000000, UB_SMALL = 1, UB_MEDIUM = 17, UB_LARGE = 512,
  UB_HUGE = 128*1024
}
 

Functions

void test_memory (void)
 
static int ub_init (const char *opts M0_UNUSED)
 
static void ub_free (int i)
 
static void ub_small (int i)
 
static void ub_medium (int i)
 
static void ub_large (int i)
 
static void ub_huge (int i)
 

Variables

static void * ubx [UB_ITER]
 
struct m0_ub_set m0_memory_ub
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
UB_ITER 
UB_SMALL 
UB_MEDIUM 
UB_LARGE 
UB_HUGE 

Definition at line 66 of file memory.c.

Function Documentation

◆ test_memory()

void test_memory ( void  )

Definition at line 33 of file memory.c.

Here is the call graph for this function:

◆ ub_free()

static void ub_free ( int  i)
static

Definition at line 82 of file memory.c.

Here is the call graph for this function:

◆ ub_huge()

static void ub_huge ( int  i)
static

Definition at line 102 of file memory.c.

Here is the call graph for this function:

◆ ub_init()

static int ub_init ( const char *opts  M0_UNUSED)
static

Definition at line 76 of file memory.c.

◆ ub_large()

static void ub_large ( int  i)
static

Definition at line 97 of file memory.c.

Here is the call graph for this function:

◆ ub_medium()

static void ub_medium ( int  i)
static

Definition at line 92 of file memory.c.

Here is the call graph for this function:

◆ ub_small()

static void ub_small ( int  i)
static

Definition at line 87 of file memory.c.

Here is the call graph for this function:

Variable Documentation

◆ m0_memory_ub

struct m0_ub_set m0_memory_ub

Definition at line 117 of file memory.c.

◆ ubx

void* ubx[UB_ITER]
static

Definition at line 74 of file memory.c.