projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move some functions around to improve overall structure
[lttv.git]
/
lttv
/
lttv
/
sync
/
event_matching_tcp.c
diff --git
a/lttv/lttv/sync/event_matching_tcp.c
b/lttv/lttv/sync/event_matching_tcp.c
index 3bfe479ed48ad8e3b4e22199c43ab3825d5ae37e..8d4d8e322c484d4b453b2c47ec1bdd266b12b49d 100644
(file)
--- a/
lttv/lttv/sync/event_matching_tcp.c
+++ b/
lttv/lttv/sync/event_matching_tcp.c
@@
-31,11
+31,6
@@
#include "event_matching_tcp.h"
#include "event_matching_tcp.h"
-#ifndef g_info
-#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
-#endif
-
-
// Functions common to all matching modules
static void initMatchingTCP(SyncState* const syncState);
static void destroyMatchingTCP(SyncState* const syncState);
// Functions common to all matching modules
static void initMatchingTCP(SyncState* const syncState);
static void destroyMatchingTCP(SyncState* const syncState);
@@
-43,8
+38,8
@@
static void destroyMatchingTCP(SyncState* const syncState);
static void matchEventTCP(SyncState* const syncState, Event* const event);
static GArray* finalizeMatchingTCP(SyncState* const syncState);
static void printMatchingStatsTCP(SyncState* const syncState);
static void matchEventTCP(SyncState* const syncState, Event* const event);
static GArray* finalizeMatchingTCP(SyncState* const syncState);
static void printMatchingStatsTCP(SyncState* const syncState);
-static void writeMatchingGraphsPlotsTCP
(SyncState* const syncState, const
- unsigned int i, const unsigned int j);
+static void writeMatchingGraphsPlotsTCP
Messages(SyncState* const syncState,
+
const
unsigned int i, const unsigned int j);
// Functions specific to this module
static void registerMatchingTCP() __attribute__((constructor (101)));
// Functions specific to this module
static void registerMatchingTCP() __attribute__((constructor (101)));
@@
-74,8
+69,9
@@
static MatchingModule matchingModuleTCP = {
.matchEvent= &matchEventTCP,
.finalizeMatching= &finalizeMatchingTCP,
.printMatchingStats= &printMatchingStatsTCP,
.matchEvent= &matchEventTCP,
.finalizeMatching= &finalizeMatchingTCP,
.printMatchingStats= &printMatchingStatsTCP,
- .writeMatchingGraphsPlots= &writeMatchingGraphsPlotsTCP,
- .writeMatchingGraphsOptions= NULL,
+ .graphFunctions= {
+ .writeTraceTraceForePlots= &writeMatchingGraphsPlotsTCPMessages,
+ }
};
};
@@
-590,7
+586,7
@@
static void openGraphDataFiles(SyncState* const syncState)
matchingData= (MatchingDataTCP*) syncState->matchingData;
matchingData= (MatchingDataTCP*) syncState->matchingData;
- cwd= changeToGraphDir(syncState->graphsDir);
+ cwd= changeToGraph
s
Dir(syncState->graphsDir);
matchingData->messagePoints= malloc(syncState->traceNb * sizeof(FILE**));
for (i= 0; i < syncState->traceNb; i++)
matchingData->messagePoints= malloc(syncState->traceNb * sizeof(FILE**));
for (i= 0; i < syncState->traceNb; i++)
@@
-702,8
+698,8
@@
static void closeGraphDataFiles(SyncState* const syncState)
* i: first trace number
* j: second trace number, garanteed to be larger than i
*/
* i: first trace number
* j: second trace number, garanteed to be larger than i
*/
-static void writeMatchingGraphsPlotsTCP
(SyncState* const syncState, const
- unsigned int i, const unsigned int j)
+static void writeMatchingGraphsPlotsTCP
Messages(SyncState* const syncState,
+
const
unsigned int i, const unsigned int j)
{
fprintf(syncState->graphsStream,
"\t\"matching_tcp-%1$03d_to_%2$03d.data\" "
{
fprintf(syncState->graphsStream,
"\t\"matching_tcp-%1$03d_to_%2$03d.data\" "
This page took
0.025186 seconds
and
4
git commands to generate.