X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_matching_broadcast.h;h=a1259a8c606ba92cead34a2c8f797a1224f4bd0d;hb=034fd175a92ebe36191141d936395f54d64eb363;hp=3492f0a77d108ad5184b02b64cf7297cd0f50da1;hpb=f10c27a850e57bf88bf1d4440eb450729782f409;p=lttv.git diff --git a/lttv/lttv/sync/event_matching_broadcast.h b/lttv/lttv/sync/event_matching_broadcast.h index 3492f0a7..a1259a8c 100644 --- a/lttv/lttv/sync/event_matching_broadcast.h +++ b/lttv/lttv/sync/event_matching_broadcast.h @@ -1,19 +1,18 @@ /* This file is part of the Linux Trace Toolkit viewer - * Copyright (C) 2009 Benjamin Poirier + * Copyright (C) 2009, 2010 Benjamin Poirier * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License Version 2 as - * published by the Free Software Foundation; + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 2.1 of the License, or (at + * your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ #ifndef EVENT_MATCHING_BROADCAST_H @@ -32,12 +31,39 @@ typedef struct totTransmit; } MatchingStatsBroadcast; +typedef struct +{ + /* This array is used for graphs. It contains file pointers to files where + * broadcast differential delay points are output. + * + * accuracyPoints is divided into three parts depending on the position of an + * element accuracyPoints[i][j]: + * Lower triangular part of the matrix + * i > j + * This contains the difference t[i] - t[j] between the times when + * a broadcast was received in trace i and trace j. + * Diagonal part of the matrix + * i = j + * This area is not allocated. + * Upper triangular part of the matrix + * i < j + * This area is not allocated. + */ + FILE*** accuracyPoints; + + // pointsNb[traceNum][traceNum] has the same structure as accuracyPoints + unsigned int** pointsNb; +} MatchingGraphsBroadcast; + typedef struct { // Broadcast* pendingBroadcasts[dataStart] GHashTable* pendingBroadcasts; MatchingStatsBroadcast* stats; + MatchingGraphsBroadcast* graphs; } MatchingDataBroadcast; +void registerMatchingBroadcast(); + #endif