CONF_PARSER_TERMINATOR
};
+#ifndef NDEBUG
+/*
+ * Migration configuration.
+ */
+static const CONF_PARSER interpret_config[] = {
+ { FR_CONF_OFFSET("countup_instructions", FR_TYPE_BOOL | FR_TYPE_HIDDEN, main_config_t, ins_countup) },
+ { FR_CONF_OFFSET("max_instructions", FR_TYPE_UINT32 | FR_TYPE_HIDDEN, main_config_t, ins_max) },
+ CONF_PARSER_TERMINATOR
+};
+#endif
+
static const CONF_PARSER server_config[] = {
/*
* FIXME: 'prefix' is the ONLY one which should be
{ FR_CONF_POINTER("migrate", FR_TYPE_SUBSECTION, NULL), .subcs = (void const *) migrate_config, .ident2 = CF_IDENT_ANY },
+#ifndef NDEBUG
+ { FR_CONF_POINTER("interpret", FR_TYPE_SUBSECTION, NULL), .subcs = (void const *) interpret_config, .ident2 = CF_IDENT_ANY },
+#endif
+
CONF_PARSER_TERMINATOR
};
uint32_t max_workers; //!< for the scheduler
fr_time_delta_t stats_interval; //!< for the scheduler
+#ifndef NDEBUG
+ uint32_t ins_max; //!< max instruction count
+ bool ins_countup; //!< count up to "max"
+#endif
+
/*
* Migration tools
*/