#endif
#include <errno.h>
+#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "event_matching_tcp.h"
-#ifndef g_info
-#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
-#endif
-
-
// Functions common to all matching modules
static void initMatchingTCP(SyncState* const syncState);
static void destroyMatchingTCP(SyncState* const syncState);
const unsigned int i, const unsigned int j);
// Functions specific to this module
-static void registerMatchingTCP() __attribute__((constructor (101)));
-
static void matchEvents(SyncState* const syncState, Event* const event,
GHashTable* const unMatchedList, GHashTable* const
unMatchedOppositeList, const size_t fieldOffset, const size_t
/*
* Matching module registering function
*/
-static void registerMatchingTCP()
+void registerMatchingTCP()
{
g_queue_push_tail(&matchingModules, &matchingModuleTCP);
}
matchingData= (MatchingDataTCP*) syncState->matchingData;
- cwd= changeToGraphDir(syncState->graphsDir);
+ cwd= changeToGraphsDir(syncState->graphsDir);
matchingData->messagePoints= malloc(syncState->traceNb * sizeof(FILE**));
for (i= 0; i < syncState->traceNb; i++)
y= message->inE->cpuTime;
}
- fprintf(stream, "%20llu %20llu\n", x, y);
+ fprintf(stream, "%20" PRIu64 " %20" PRIu64 "\n", x, y);
}