Commit | Line | Data |
---|---|---|
70407e86 | 1 | /* This file is part of the Linux Trace Toolkit viewer |
277e5b53 | 2 | * Copyright (C) 2009, 2010 Benjamin Poirier <benjamin.poirier@polymtl.ca> |
70407e86 | 3 | * |
277e5b53 BP |
4 | * This program is free software: you can redistribute it and/or modify it |
5 | * under the terms of the GNU Lesser General Public License as published by | |
6 | * the Free Software Foundation, either version 2.1 of the License, or (at | |
7 | * your option) any later version. | |
70407e86 | 8 | * |
277e5b53 BP |
9 | * This program is distributed in the hope that it will be useful, but WITHOUT |
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public | |
12 | * License for more details. | |
70407e86 | 13 | * |
277e5b53 BP |
14 | * You should have received a copy of the GNU Lesser General Public License |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
70407e86 BP |
16 | */ |
17 | ||
2f7298ac BP |
18 | #ifndef EVENT_PROCESSING_LTTNG_STANDARD_H |
19 | #define EVENT_PROCESSING_LTTNG_STANDARD_H | |
70407e86 BP |
20 | |
21 | #include <glib.h> | |
22 | ||
23 | #include <lttv/tracecontext.h> | |
24 | ||
25 | #include "event_processing.h" | |
26 | ||
27 | typedef struct | |
28 | { | |
29 | int totRecv, | |
30 | totRecvIp, | |
f6691532 BP |
31 | totRecvTCP, |
32 | totRecvUDP, | |
70407e86 BP |
33 | totOutE; |
34 | } ProcessingStatsLTTVStandard; | |
35 | ||
1633c5a5 BP |
36 | typedef struct |
37 | { | |
38 | uint32_t freqScale; | |
39 | uint64_t startFreq; | |
40 | } ProcessingGraphsLTTVStandard; | |
41 | ||
70407e86 BP |
42 | typedef struct |
43 | { | |
44 | LttvTracesetContext* traceSetContext; | |
45 | ||
46 | // unsigned int traceNumTable[trace*] | |
47 | GHashTable* traceNumTable; | |
48 | ||
49 | // hookListList conceptually is a two dimensionnal array of LttvTraceHook | |
50 | // elements. It uses GArrays to interface with other lttv functions that | |
51 | // do. | |
52 | // LttvTraceHook hookListList[traceNum][hookNum] | |
53 | GArray* hookListList; | |
54 | ||
1633c5a5 | 55 | // inE* pendingRecv[traceNum] |
70407e86 BP |
56 | GHashTable** pendingRecv; |
57 | ||
58 | ProcessingStatsLTTVStandard* stats; | |
1633c5a5 BP |
59 | // ProcessingGraphsLTTVStandard graphs[traceNum] |
60 | ProcessingGraphsLTTVStandard* graphs; | |
70407e86 BP |
61 | } ProcessingDataLTTVStandard; |
62 | ||
2f961b65 BP |
63 | void registerProcessingLTTVStandard(); |
64 | ||
70407e86 | 65 | #endif |