#include "lib/time.h"
#include "lib/arith.h"
#include "lib/assert.h"
#include "lib/atomic.h"
#include "lib/semaphore.h"
#include "lib/thread.h"
#include "lib/trace.h"
#include "lib/ub.h"
#include "ut/ut.h"
Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
THREADS_NR_MAX | |
TIME_VALUES_NR | |
DIFF_ACCEPTED | 2ms accepted difference between m0_time_now() on different cores
|
Definition at line 35 of file time.c.
◆ anonymous enum
◆ m0_ut_time_test()
void m0_ut_time_test |
( |
void |
| ) |
|
◆ time_test_check()
static void time_test_check |
( |
int64_t |
a, |
|
|
int64_t |
b, |
|
|
int64_t |
c |
|
) |
| |
|
static |
◆ time_test_mt_nr()
static void time_test_mt_nr |
( |
int |
threads_nr | ) |
|
|
static |
◆ time_test_simple()
static void time_test_simple |
( |
void |
| ) |
|
|
static |
◆ time_thread()
static void time_thread |
( |
int |
thread_index | ) |
|
|
static |
◆ tv()
◆ tv_prev()
◆ ub_time_round()
static void ub_time_round |
( |
int |
unused | ) |
|
|
static |
◆ err_max
Maximum out-of-sync error
Definition at line 57 of file time.c.
◆ err_nr
Number of out-of-sync errors
Definition at line 56 of file time.c.
◆ m0_time_ub
Initial value:= {
.us_name = "time-ub",
.us_run = {
{ .ub_name = "now",
}
}
static void ub_time_round(int unused)
Definition at line 244 of file time.c.
◆ time_index
◆ time_threads
◆ time_values