50 #define UB_SANDBOX "./ub-sandbox" 70 out->ua_ub_list =
false;
74 M0_VOIDARG(
'l',
"List available benchmarks and exit",
76 out->ua_ub_list =
true;
78 M0_NUMBERARG(
'r',
"Number of rounds a benchmark has to run",
79 LAMBDA(
void, (int64_t rounds) {
80 out->ua_rounds = rounds;
83 LAMBDA(
void, (
const char *str) {
88 LAMBDA(
void, (
const char *str) {
133 int main(
int argc,
char *argv[])
#define M0_GETOPTS(progname, argc, argv,...)
struct m0_ub_set m0_memory_ub
struct m0_ub_set m0_parity_math_mt_ub
struct m0_ub_set m0_ad_ub
struct m0_ub_set m0_time_ub
static int ub_run(const struct ub_args *args)
struct m0_ub_set m0_bitmap_ub
static void ub_add(const struct ub_args *args)
M0_INTERNAL void m0_instance_setup(struct m0 *instance)
struct m0_ub_set m0_adieu_ub
struct m0_ub_set m0_atomic_ub
struct m0_module *(* mt_create)(struct m0 *instance)
#define M0_VOIDARG(ch, desc, func)
#define M0_NUMBERARG(ch, desc, func)
M0_INTERNAL void m0_ut_fini(void)
#define M0_STRINGARG(ch, desc, func)
struct m0_ub_set m0_trace_ub
M0_INTERNAL int m0_ub_run(uint32_t rounds, const char *opts)
M0_INTERNAL int m0_ut_init(struct m0 *instance)
struct m0_ub_set m0_fom_ub
struct m0_ub_set m0_timer_ub
int main(int argc, char *argv[])
struct m0_ub_set m0_varr_ub
static void ub_args_fini(struct ub_args *args)
const struct m0_module_type m0_ut_module_type
M0_INTERNAL int m0_ub_set_select(const char *name)
M0_INTERNAL void m0_ub_set_print(void)
struct m0_ub_set m0_thread_ub
void * i_moddata[M0_MODULE_NR]
static struct m0 instance
struct m0_ub_set m0_list_ub
struct m0_ub_set m0_fol_ub
struct m0_ub_set m0_parity_math_ub
static int ub_args_parse(int argc, char *argv[], struct ub_args *out)
M0_INTERNAL void m0_ub_set_add(struct m0_ub_set *set)
struct m0_ub_set m0_tlist_ub