X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_matching_tcp.c;h=a8fdf5f007683630abfb967c0e29ac1a7889ad9f;hb=76be6fc24daf61767bf7f0c2e64f4691fbb56c63;hp=25e39858fb8b36c76c19c11bcd0efe5d64a5ba09;hpb=10341d26543c63ff318a4cf5cb163bccdc58b19d;p=lttv.git diff --git a/lttv/lttv/sync/event_matching_tcp.c b/lttv/lttv/sync/event_matching_tcp.c index 25e39858..a8fdf5f0 100644 --- a/lttv/lttv/sync/event_matching_tcp.c +++ b/lttv/lttv/sync/event_matching_tcp.c @@ -26,7 +26,7 @@ #include #include "event_analysis.h" -#include "sync_chain_lttv.h" +#include "sync_chain.h" #include "event_matching_tcp.h" @@ -69,6 +69,8 @@ static void writeMessagePoint(FILE* stream, const Message* const message); static MatchingModule matchingModuleTCP = { .name= "TCP", + .canMatch[TCP]= true, + .canMatch[UDP]= false, .initMatching= &initMatchingTCP, .destroyMatching= &destroyMatchingTCP, .matchEvent= &matchEventTCP, @@ -231,12 +233,13 @@ static void partialDestroyMatchingTCP(SyncState* const syncState) * Args: * syncState container for synchronization data. * event new event to match - * eventType type of event to match */ static void matchEventTCP(SyncState* const syncState, Event* const event) { MatchingDataTCP* matchingData; + g_assert(event->type == TCP); + matchingData= (MatchingDataTCP*) syncState->matchingData; if (event->event.tcpEvent->direction == IN) @@ -643,14 +646,14 @@ static void writeMessagePoint(FILE* stream, const Message* const message) if (message->inE->traceNum < message->outE->traceNum) { // CA is inE->traceNum - x= message->inE->time; - y= message->outE->time; + x= message->inE->cpuTime; + y= message->outE->cpuTime; } else { // CA is outE->traceNum - x= message->outE->time; - y= message->inE->time; + x= message->outE->cpuTime; + y= message->inE->cpuTime; } fprintf(stream, "%20llu %20llu\n", x, y);