X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=lttv%2Flttv%2Fsync%2Fevent_matching_tcp.c;h=6b8f538eaf25cddbd5809e70c5f062e4bfa12710;hb=f6691532b67cb6911749118e3da8d74de876380c;hp=25e39858fb8b36c76c19c11bcd0efe5d64a5ba09;hpb=fea7219b7d953f8c2677f497f010495cfa095b00;p=lttv.git diff --git a/lttv/lttv/sync/event_matching_tcp.c b/lttv/lttv/sync/event_matching_tcp.c index 25e39858..6b8f538e 100644 --- a/lttv/lttv/sync/event_matching_tcp.c +++ b/lttv/lttv/sync/event_matching_tcp.c @@ -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)