Motr  M0
example.c File Reference
#include "lib/trace.h"
#include "motr/client.h"
#include "motr/st/st.h"
#include "motr/st/st_misc.h"
#include "motr/st/st_assert.h"
Include dependency graph for example.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT
 

Functions

static void example_abitmorecomplicated (void)
 
static void example_simple (void)
 
static int st_example_init (void)
 
static int st_example_fini (void)
 

Variables

struct m0_container st_example_container
 
static struct m0_uint128 test_id
 
static uint64_t layout_id
 
struct st_suite st_suite_example
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT

Definition at line 23 of file example.c.

Function Documentation

◆ example_abitmorecomplicated()

static void example_abitmorecomplicated ( void  )
static

Definition at line 39 of file example.c.

Here is the call graph for this function:

◆ example_simple()

static void example_simple ( void  )
static

Definition at line 163 of file example.c.

Here is the call graph for this function:

◆ st_example_fini()

static int st_example_fini ( void  )
static

Definition at line 239 of file example.c.

◆ st_example_init()

static int st_example_init ( void  )
static

Definition at line 218 of file example.c.

Here is the call graph for this function:

Variable Documentation

◆ layout_id

uint64_t layout_id
static

Definition at line 33 of file example.c.

◆ st_example_container

struct m0_container st_example_container

Definition at line 31 of file example.c.

◆ st_suite_example

struct st_suite st_suite_example
Initial value:
= {
.ss_name = "example_st",
.ss_init = st_example_init,
.ss_fini = st_example_fini,
.ss_tests = {
{ "example_simple",
{ "example_abitmorecomplicated",
{ NULL, NULL }
}
}
static void example_simple(void)
Definition: example.c:163
#define NULL
Definition: misc.h:38
static void example_abitmorecomplicated(void)
Definition: example.c:39
static int st_example_fini(void)
Definition: example.c:239
static int st_example_init(void)
Definition: example.c:218

Definition at line 244 of file example.c.

◆ test_id

struct m0_uint128 test_id
static

Definition at line 32 of file example.c.