X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_analysis_eval.h;h=b02c77212e42b0436d0f49b1beae6ab9c8c8776c;hb=e96ed88f09628976d17fa4820b1d6deaf6cedf4a;hp=159ba615acbba639589285a61e8988802485afb4;hpb=d4721e1a5216f34570d7e10257f85601cb3991bc;p=lttv.git diff --git a/lttv/lttv/sync/event_analysis_eval.h b/lttv/lttv/sync/event_analysis_eval.h index 159ba615..b02c7721 100644 --- a/lttv/lttv/sync/event_analysis_eval.h +++ b/lttv/lttv/sync/event_analysis_eval.h @@ -42,19 +42,62 @@ typedef struct double broadcastDiffSum; unsigned int broadcastNb; + // MessageStats messageStats[traceNb][traceNb] MessageStats** messageStats; + /* double* exchangeRtt[RttKey] * For this table, saddr and daddr are swapped as necessary such that * saddr < daddr */ GHashTable* exchangeRtt; } AnalysisStatsEval; + +#define BIN_NB 1001 +struct Bins +{ + // index of min and max bins that are != 0 + uint32_t min, max; + // sum of all bins + uint32_t total; + /* bin[0]: underflow ]-INFINITY..0[ + * bin[1]: [0..1e-6[ + * rest defined exponentially, see binStart() + * bin[BIN_NB - 1]: overflow [1..INFINITY[ */ + uint32_t bin[BIN_NB]; +}; + + +typedef struct +{ + /* File pointers to files where "trip times" (message latency) histogram + * values are output. Each host-pair has two files, one for each message + * direction. As for traces, the host with the smallest address is + * considered to be the reference for the direction of messages (ie. + * messages from the host with the lowest address to the host with the + * largest address are "sent"). */ + FILE* ttSendPoints; + FILE* ttRecvPoints; + + struct Bins ttSendBins; + struct Bins ttRecvBins; + + /* File pointers to files where half round trip times (evaluated from + * exchanges) histogram values are output. */ + FILE* hrttPoints; + + struct Bins hrttBins; +} AnalysisGraphEval; + typedef struct { // double* rttInfo[RttKey] GHashTable* rttInfo; AnalysisStatsEval* stats; + /* AnalysisGraphsEval* graphs[RttKey]; + * For this table, saddr and daddr are swapped as necessary such that + * saddr < daddr */ + GHashTable* graphs; } AnalysisDataEval; #endif