Motr  M0
clk_src_ut.c File Reference
#include "lib/trace.h"
#include "ut/ut.h"
#include "dtm0/clk_src.h"
#include "lib/errno.h"
#include "lib/string.h"
#include "lib/memory.h"
Include dependency graph for clk_src_ut.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DTM
 

Functions

static void ts_format (void)
 
static void init_fini (void)
 
static void get_now (void)
 
static void now_min_max (void)
 
static void now_and_then (void)
 

Variables

struct m0_ut_suite dtm0_clk_src_ut
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DTM

Definition at line 22 of file clk_src_ut.c.

Function Documentation

◆ get_now()

static void get_now ( void  )
static

Definition at line 54 of file clk_src_ut.c.

Here is the call graph for this function:

◆ init_fini()

static void init_fini ( void  )
static

Definition at line 45 of file clk_src_ut.c.

Here is the call graph for this function:

◆ now_and_then()

static void now_and_then ( void  )
static

Definition at line 98 of file clk_src_ut.c.

Here is the call graph for this function:

◆ now_min_max()

static void now_min_max ( void  )
static

Definition at line 65 of file clk_src_ut.c.

Here is the call graph for this function:

◆ ts_format()

static void ts_format ( void  )
static

Definition at line 32 of file clk_src_ut.c.

Here is the call graph for this function:

Variable Documentation

◆ dtm0_clk_src_ut

struct m0_ut_suite dtm0_clk_src_ut
Initial value:
= {
.ts_name = "dtm0-clk-src-ut",
.ts_init = NULL,
.ts_fini = NULL,
.ts_tests = {
{ "ts-format", ts_format },
{ "phys-init-fini", init_fini },
{ "phys-now", get_now },
{ "phys-now-min-max", now_min_max },
{ "phys-now-and-then", now_and_then },
{ NULL, NULL }
}
}
#define NULL
Definition: misc.h:38
static void get_now(void)
Definition: clk_src_ut.c:54
static void ts_format(void)
Definition: clk_src_ut.c:32
static void init_fini(void)
Definition: clk_src_ut.c:45
static void now_min_max(void)
Definition: clk_src_ut.c:65
static void now_and_then(void)
Definition: clk_src_ut.c:98

Definition at line 122 of file clk_src_ut.c.