X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fsync_chain.h;h=852e8e4a0ad855f448f6ee210e3dd23534ca0541;hb=2f07659468ff3427bb3923cdc5a7ec61b6e8bbce;hp=9515c6e5e07d0d46e001279927b181c2720f88c3;hpb=70407e861d8430dbe06cc52e6fe4ed5c9cd0872a;p=lttv.git diff --git a/lttv/lttv/sync/sync_chain.h b/lttv/lttv/sync/sync_chain.h index 9515c6e5..852e8e4a 100644 --- a/lttv/lttv/sync/sync_chain.h +++ b/lttv/lttv/sync/sync_chain.h @@ -20,6 +20,7 @@ #define SYNC_CHAIN_H #include +#include #include "event_processing.h" #include "event_matching.h" @@ -29,6 +30,8 @@ typedef struct _SyncState { unsigned int traceNb; bool stats; + FILE* graphsStream; + const char* graphsDir; const ProcessingModule* processingModule; void* processingData; @@ -38,11 +41,35 @@ typedef struct _SyncState 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