30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 51 .co_buffer_size = 4096,
134 for (
i = 0;
i <
N; ++
i) {
137 conf.co_pool_max =
i;
138 conf.co_pool_min =
i;
142 for (j = 0; j <
i; ++j) {
149 for (j = 0; j <
i; ++j) {
158 for (
t = 0;
t <= j; ++
t) {
165 for (
t = 0;
t <= j; ++
t)
188 for (
i = 0;
i <
nr; ++
i)
189 M0_ADDB2_ADD(10 +
i, 9, 8, 7, 6 +
i, 5, 4, 3 -
i, 2, 1, 0);
277 {
"mach-1", &
mach_1,
"Nikita" },
283 {
"sm-add", &
sm_add,
"Nikita" },
288 #undef M0_TRACE_SUBSYSTEM
static const struct m0_addb2_config queue
static void ast_trap(struct m0_addb2_sys *sys)
static struct m0_addb2_mach * m
void m0_addb2_sys_sm_start(struct m0_addb2_sys *sys)
struct m0_addb2_mach * tls_addb2_mach
#define m0_exists(var, nr,...)
M0_ADDB2_ADD(M0_AVI_FS_CREATE, new_fid.f_container, new_fid.f_key, mode, rc)
void(* m0_addb2__sys_submit_trap)(struct m0_addb2_sys *sys, struct m0_addb2_trace_obj *obj)
M0_INTERNAL struct m0_thread_tls * m0_thread_tls(void)
static unsigned sys_submitted
void m0_addb2_sys_fini(struct m0_addb2_sys *sys)
void(* m0_addb2__sys_ast_trap)(struct m0_addb2_sys *sys)
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
static void m0_fi_enable(const char *func, const char *tag)
int m0_addb2_sys_init(struct m0_addb2_sys **out, const struct m0_addb2_config *conf)
static struct m0_thread t[8]
static void mach_cache(void)
static void _add(const struct m0_addb2_config *conf, unsigned nr)
M0_INTERNAL int m0_semaphore_init(struct m0_semaphore *semaphore, unsigned value)
static __thread struct m0_thread_tls * tls
static const struct m0_addb2_config noqueue
static void submit_trap(struct m0_addb2_sys *sys, struct m0_addb2_trace_obj *obj)
static struct m0_semaphore ast_wait
#define m0_forall(var, nr,...)
struct m0_addb2_mach * m0_addb2_sys_get(struct m0_addb2_sys *sys)
M0_INTERNAL void m0_semaphore_fini(struct m0_semaphore *semaphore)
struct m0_ut_suite addb2_sys_ut
static void add_loop(const struct m0_addb2_config *conf)
static void queue_add(void)
static void mach_toomany(void)
void m0_addb2_sys_put(struct m0_addb2_sys *sys, struct m0_addb2_mach *m)
M0_INTERNAL void m0_semaphore_down(struct m0_semaphore *semaphore)
M0_INTERNAL void m0_semaphore_up(struct m0_semaphore *semaphore)
static void init_fini(void)
static void noqueue_add(void)
static struct m0_addb2_source * s
static void mach_cache_N(void)