#define SYNC_CHAIN_H
#include <glib.h>
+#include <sys/time.h>
#include "event_processing.h"
#include "event_matching.h"
{
unsigned int traceNb;
bool stats;
+ FILE* graphsStream;
+ const char* graphsDir;
const ProcessingModule* processingModule;
void* processingData;
void* analysisData;
} SyncState;
+typedef struct
+{
+ const char* longName;
+ enum {
+ NO_ARG,
+ REQUIRED_ARG,
+ //OPTIONAL_ARG, // Not yet implemented because not supported by LTTV
+ HAS_ARG_COUNT // This must be the last field
+ } hasArg;
+ union
+ {
+ bool present;
+ const char* arg;
+ };
+ const char* optionHelp;
+ const char* argHelp;
+} ModuleOption;
+
+
extern GQueue processingModules;
extern GQueue matchingModules;
extern GQueue analysisModules;
+extern GQueue moduleOptions;
+
+void timeDiff(struct timeval* const end, const struct timeval* const start);
-void syncTraceset(LttvTracesetContext* const traceSetContext);
+gint gcfCompareProcessing(gconstpointer a, gconstpointer b);
+gint gcfCompareMatching(gconstpointer a, gconstpointer b);
+gint gcfCompareAnalysis(gconstpointer a, gconstpointer b);
#endif