| 1 | /* This file is part of the Linux Trace Toolkit viewer |
| 2 | * Copyright (C) 2009, 2010 Benjamin Poirier <benjamin.poirier@polymtl.ca> |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify it |
| 5 | * under the terms of the GNU Lesser General Public License as published by |
| 6 | * the Free Software Foundation, either version 2.1 of the License, or (at |
| 7 | * your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| 12 | * License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public License |
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #ifndef EVENT_MATCHING_TCP_H |
| 19 | #define EVENT_MATCHING_TCP_H |
| 20 | |
| 21 | #include <glib.h> |
| 22 | |
| 23 | #include "data_structures.h" |
| 24 | |
| 25 | |
| 26 | typedef struct |
| 27 | { |
| 28 | unsigned int totPacket, |
| 29 | totPacketNeedAck, |
| 30 | totExchangeEffective, |
| 31 | totExchangeSync; |
| 32 | /* The structure of the array is the same as for hullArray in |
| 33 | * analysis_chull, messagePoints[row][col] where: |
| 34 | * row= inE->traceNum |
| 35 | * col= outE->traceNum |
| 36 | */ |
| 37 | unsigned int** totMessageArray; |
| 38 | } MatchingStatsTCP; |
| 39 | |
| 40 | typedef struct |
| 41 | { |
| 42 | // NetEvent* unMatchedInE[packetKey] |
| 43 | GHashTable* unMatchedInE; |
| 44 | // NetEvent* unMatchedOutE[packetKey] |
| 45 | GHashTable* unMatchedOutE; |
| 46 | // Packet* unAcked[connectionKey] |
| 47 | GHashTable* unAcked; |
| 48 | |
| 49 | MatchingStatsTCP* stats; |
| 50 | /* This array is used for graphs. It contains file pointers to files where |
| 51 | * messages x-y points are outputed. Each trace-pair has two files, one |
| 52 | * for each message direction. The structure of the array is the same as |
| 53 | * for hullArray in analysis_chull, messagePoints[row][col] where: |
| 54 | * row= inE->traceNum |
| 55 | * col= outE->traceNum |
| 56 | * |
| 57 | * The elements on the diagonal are not initialized. |
| 58 | */ |
| 59 | FILE*** messagePoints; |
| 60 | } MatchingDataTCP; |
| 61 | |
| 62 | void registerMatchingTCP(); |
| 63 | |
| 64 | #endif |