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

Go to the source code of this file.

Enumerations

enum  { UT_BITMAP_SIZE = 120 }
 
enum  { UB_ITER = 100000 }
 

Functions

static void test_bitmap_copy (void)
 
void test_bitmap (void)
 
void test_bitmap_onwire (void)
 
static int ub_init (const char *opts M0_UNUSED)
 
static void ub_fini (void)
 
static void ub_set0 (int i)
 
static void ub_set1 (int i)
 
static void ub_get (int i)
 

Variables

static struct m0_bitmap ub_bm
 
struct m0_ub_set m0_bitmap_ub
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
UT_BITMAP_SIZE 

Definition at line 29 of file bitmap.c.

◆ anonymous enum

anonymous enum
Enumerator
UB_ITER 

Definition at line 147 of file bitmap.c.

Function Documentation

◆ test_bitmap()

void test_bitmap ( void  )

Definition at line 63 of file bitmap.c.

Here is the call graph for this function:

◆ test_bitmap_copy()

static void test_bitmap_copy ( void  )
static

Definition at line 33 of file bitmap.c.

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

◆ test_bitmap_onwire()

void test_bitmap_onwire ( void  )

Definition at line 120 of file bitmap.c.

Here is the call graph for this function:

◆ ub_fini()

static void ub_fini ( void  )
static

Definition at line 158 of file bitmap.c.

Here is the call graph for this function:

◆ ub_get()

static void ub_get ( int  i)
static

Definition at line 179 of file bitmap.c.

Here is the call graph for this function:

◆ ub_init()

static int ub_init ( const char *opts  M0_UNUSED)
static

Definition at line 153 of file bitmap.c.

Here is the call graph for this function:

◆ ub_set0()

static void ub_set0 ( int  i)
static

Definition at line 163 of file bitmap.c.

Here is the call graph for this function:

◆ ub_set1()

static void ub_set1 ( int  i)
static

Definition at line 171 of file bitmap.c.

Here is the call graph for this function:

Variable Documentation

◆ m0_bitmap_ub

struct m0_ub_set m0_bitmap_ub
Initial value:
= {
.us_name = "bitmap-ub",
.us_init = ub_init,
.us_fini = ub_fini,
.us_run = {
{ .ub_name = "set0",
.ub_iter = UB_ITER,
.ub_round = ub_set0 },
{ .ub_name = "set1",
.ub_iter = UB_ITER,
.ub_round = ub_set1 },
{ .ub_name = "get",
.ub_iter = UB_ITER,
.ub_round = ub_get },
{ .ub_name = NULL }
}
}
static void ub_fini(void)
Definition: bitmap.c:158
#define NULL
Definition: misc.h:38
static int ub_init(const char *opts M0_UNUSED)
Definition: bitmap.c:153
static void ub_set1(int i)
Definition: bitmap.c:171
static void ub_get(int i)
Definition: bitmap.c:179
static void ub_set0(int i)
Definition: bitmap.c:163

Definition at line 187 of file bitmap.c.

◆ ub_bm

struct m0_bitmap ub_bm
static

Definition at line 151 of file bitmap.c.