X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_matching_broadcast.c;h=3006f40474fd4adf7261f1c9d03f476f9e79d08c;hb=467066eeab8b0a4e5ea07d24f1840310730fd470;hp=98bab58abd69fd26b828aff9488f9508715b3f83;hpb=ffa21cfde7a086c1558b961ffa0fcbe75513a7f6;p=lttv.git diff --git a/lttv/lttv/sync/event_matching_broadcast.c b/lttv/lttv/sync/event_matching_broadcast.c index 98bab58a..3006f404 100644 --- a/lttv/lttv/sync/event_matching_broadcast.c +++ b/lttv/lttv/sync/event_matching_broadcast.c @@ -67,8 +67,9 @@ static MatchingModule matchingModuleBroadcast = { .matchEvent= &matchEventBroadcast, .finalizeMatching= &finalizeMatchingBroadcast, .printMatchingStats= &printMatchingStatsBroadcast, - .writeMatchingGraphsPlots= &writeMatchingGraphsPlotsBroadcast, - .writeMatchingGraphsOptions= NULL, + .graphFunctions= { + .writeTraceTimePlots= &writeMatchingGraphsPlotsBroadcast, + } }; @@ -430,8 +431,8 @@ static void writeAccuracyPoints(MatchingGraphsBroadcast* graphs, const if (eventI->traceNum < eventJ->traceNum) { fprintf(graphs->accuracyPoints[eventJ->traceNum][eventI->traceNum], - "%20llu %20lld\n", eventI->cpuTime, (int64_t) eventJ->cpuTime - - eventI->cpuTime); + "%20llu %20.9f\n", eventI->cpuTime, + wallTimeSub(&eventJ->wallTime, &eventI->wallTime)); graphs->pointsNb[eventJ->traceNum][eventI->traceNum]++; } }