#include <sys/stat.h>
#include <unistd.h>
+#include "event_processing_text.h"
+#include "event_matching_tcp.h"
+#include "event_matching_broadcast.h"
+#include "event_matching_distributor.h"
+#include "event_analysis_chull.h"
+#include "event_analysis_linreg.h"
+#include "event_analysis_eval.h"
#include "sync_chain.h"
bool stats;
const char* testCaseName;
GString* analysisModulesNames;
+ unsigned int id;
+
+ /*
+ * Initialize event modules
+ * Call the "constructor" or initialization function of each event module
+ * so it can register itself. This must be done before elements in
+ * processingModules, matchingModules, analysisModules or moduleOptions
+ * are accessed.
+ */
+ registerProcessingText();
+
+ registerMatchingTCP();
+ registerMatchingBroadcast();
+ registerMatchingDistributor();
+
+ registerAnalysisCHull();
+ registerAnalysisLinReg();
+ registerAnalysisEval();
// Initialize data structures
syncState= malloc(sizeof(SyncState));
else
{
syncState->stats= false;
- g_log_set_handler(NULL, G_LOG_LEVEL_DEBUG, nullLog, NULL);
+ id= g_log_set_handler(NULL, G_LOG_LEVEL_DEBUG, nullLog, NULL);
}
if (optionSyncGraphs.present)
endUsage.ru_stime.tv_usec);
}
+ if (!optionSyncStats.present)
+ {
+ g_log_remove_handler(NULL, id);
+ }
+
return EXIT_SUCCESS;
}