static void StatsInitCtx(void)
{
SCEnter();
+#ifdef AFLFUZZ_DISABLE_MGTTHREADS
+ stats_enabled = FALSE;
+ SCReturn;
+#endif
ConfNode *stats = GetConfig();
if (stats != NULL) {
const char *enabled = ConfNodeLookupChildValue(stats, "enabled");
*/
void FlowDisableFlowManagerThread(void)
{
+#ifdef AFLFUZZ_DISABLE_MGTTHREADS
+ return;
+#endif
ThreadVars *tv = NULL;
int cnt = 0;
/** \brief spawn the flow manager thread */
void FlowManagerThreadSpawn()
{
+#ifdef AFLFUZZ_DISABLE_MGTTHREADS
+ return;
+#endif
intmax_t setting = 1;
(void)ConfGetInt("flow.managers", &setting);
/** \brief spawn the flow recycler thread */
void FlowRecyclerThreadSpawn()
{
+#ifdef AFLFUZZ_DISABLE_MGTTHREADS
+ return;
+#endif
intmax_t setting = 1;
(void)ConfGetInt("flow.recyclers", &setting);
*/
void FlowDisableFlowRecyclerThread(void)
{
+#ifdef AFLFUZZ_DISABLE_MGTTHREADS
+ return;
+#endif
ThreadVars *tv = NULL;
int cnt = 0;
#endif
#define AFLFUZZ_NO_RANDOM 1
+#define AFLFUZZ_DISABLE_MGTTHREADS 1
/* we need this to stringify the defines which are supplied at compiletime see:
http://gcc.gnu.org/onlinedocs/gcc-3.4.1/cpp/Stringification.html#Stringification */