X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_matching_tcp.c;h=5f3aa934e4c87564945b9d874daf554c9c51522c;hb=2f961b65e3422f23019286e9531b0a40070278ea;hp=8d4d8e322c484d4b453b2c47ec1bdd266b12b49d;hpb=1d597550379cb00832f73bd5402918fd6ed2e9df;p=lttv.git diff --git a/lttv/lttv/sync/event_matching_tcp.c b/lttv/lttv/sync/event_matching_tcp.c index 8d4d8e32..5f3aa934 100644 --- a/lttv/lttv/sync/event_matching_tcp.c +++ b/lttv/lttv/sync/event_matching_tcp.c @@ -21,6 +21,7 @@ #endif #include +#include #include #include #include @@ -42,8 +43,6 @@ static void writeMatchingGraphsPlotsTCPMessages(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 @@ -78,7 +77,7 @@ static MatchingModule matchingModuleTCP = { /* * Matching module registering function */ -static void registerMatchingTCP() +void registerMatchingTCP() { g_queue_push_tail(&matchingModules, &matchingModuleTCP); } @@ -645,7 +644,7 @@ static void writeMessagePoint(FILE* stream, const Message* const message) y= message->inE->cpuTime; } - fprintf(stream, "%20llu %20llu\n", x, y); + fprintf(stream, "%20" PRIu64 " %20" PRIu64 "\n", x, y); }