Commit | Line | Data |
---|---|---|
70407e86 BP |
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 | ||
10341d26 BP |
19 | #ifndef SYNC_CHAIN_LTTV_H |
20 | #define SYNC_CHAIN_LTTV_H | |
70407e86 BP |
21 | |
22 | #include <glib.h> | |
9a9ca632 | 23 | #include <sys/time.h> |
70407e86 BP |
24 | |
25 | #include "event_processing.h" | |
26 | #include "event_matching.h" | |
27 | #include "event_analysis.h" | |
28 | ||
29 | typedef struct _SyncState | |
30 | { | |
31 | unsigned int traceNb; | |
32 | bool stats; | |
08365995 | 33 | char* graphs; |
70407e86 BP |
34 | |
35 | const ProcessingModule* processingModule; | |
36 | void* processingData; | |
37 | const MatchingModule* matchingModule; | |
38 | void* matchingData; | |
39 | const AnalysisModule* analysisModule; | |
40 | void* analysisData; | |
41 | } SyncState; | |
42 | ||
43 | extern GQueue processingModules; | |
44 | extern GQueue matchingModules; | |
45 | extern GQueue analysisModules; | |
46 | ||
47 | ||
48 | void syncTraceset(LttvTracesetContext* const traceSetContext); | |
49 | ||
08365995 | 50 | char* changeToGraphDir(char* const graphs); |
9a9ca632 BP |
51 | void timeDiff(struct timeval* const end, const struct timeval* const start); |
52 | ||
53 | gint gcfCompareProcessing(gconstpointer a, gconstpointer b); | |
54 | gint gcfCompareMatching(gconstpointer a, gconstpointer b); | |
55 | gint gcfCompareAnalysis(gconstpointer a, gconstpointer b); | |
08365995 | 56 | |
70407e86 | 57 | #endif |