X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_matching_broadcast.c;h=1bc5d75e510492a5e18006ab97490d2cf154009e;hb=2f961b65e3422f23019286e9531b0a40070278ea;hp=ff45a8a71b7729848a6ef61d2918629211063482;hpb=fafb0a2998296c564cbc26c2c0fa5142b181b332;p=lttv.git diff --git a/lttv/lttv/sync/event_matching_broadcast.c b/lttv/lttv/sync/event_matching_broadcast.c index ff45a8a7..1bc5d75e 100644 --- a/lttv/lttv/sync/event_matching_broadcast.c +++ b/lttv/lttv/sync/event_matching_broadcast.c @@ -21,6 +21,7 @@ #endif #include +#include #include #include #include @@ -42,8 +43,6 @@ static void writeMatchingGraphsPlotsBroadcast(SyncState* const syncState, const unsigned int i, const unsigned int j); // Functions specific to this module -static void registerMatchingBroadcast() __attribute__((constructor (101))); - static void partialDestroyMatchingBroadcast(SyncState* const syncState); static void openGraphDataFiles(SyncState* const syncState); @@ -70,7 +69,7 @@ static MatchingModule matchingModuleBroadcast = { /* * Matching module registering function */ -static void registerMatchingBroadcast() +void registerMatchingBroadcast() { g_queue_push_tail(&matchingModules, &matchingModuleBroadcast); } @@ -369,7 +368,7 @@ static void openGraphDataFiles(SyncState* const syncState) MatchingGraphsBroadcast* graphs= ((MatchingDataBroadcast*) syncState->matchingData)->graphs; - cwd= changeToGraphDir(syncState->graphsDir); + cwd= changeToGraphsDir(syncState->graphsDir); graphs->accuracyPoints= malloc(syncState->traceNb * sizeof(FILE**)); graphs->pointsNb= malloc(syncState->traceNb * sizeof(unsigned int*)); @@ -425,7 +424,7 @@ static void writeAccuracyPoints(MatchingGraphsBroadcast* graphs, const if (eventI->traceNum < eventJ->traceNum) { fprintf(graphs->accuracyPoints[eventJ->traceNum][eventI->traceNum], - "%20llu %20.9f\n", eventI->cpuTime, + "%20" PRIu64 " %20.9f\n", eventI->cpuTime, wallTimeSub(&eventJ->wallTime, &eventI->wallTime)); graphs->pointsNb[eventJ->traceNum][eventI->traceNum]++; }