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