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 | ||
08365995 BP |
18 | #ifndef EVENT_PROCESSING_LTTNG_COMMON_H |
19 | #define EVENT_PROCESSING_LTTNG_COMMON_H | |
70407e86 BP |
20 | |
21 | #include <glib.h> | |
9a9ca632 | 22 | #include <stdbool.h> |
70407e86 BP |
23 | |
24 | #include <lttv/tracecontext.h> | |
25 | ||
26 | ||
27 | GQuark | |
f6691532 | 28 | LTT_CHANNEL_NET; |
70407e86 BP |
29 | |
30 | GQuark | |
fea7219b | 31 | LTT_EVENT_DEV_XMIT_EXTENDED, |
70407e86 | 32 | LTT_EVENT_DEV_RECEIVE, |
fea7219b | 33 | LTT_EVENT_TCPV4_RCV_EXTENDED, |
f6691532 | 34 | LTT_EVENT_UDPV4_RCV_EXTENDED; |
70407e86 BP |
35 | |
36 | GQuark | |
37 | LTT_FIELD_SKB, | |
38 | LTT_FIELD_PROTOCOL, | |
39 | LTT_FIELD_NETWORK_PROTOCOL, | |
40 | LTT_FIELD_TRANSPORT_PROTOCOL, | |
41 | LTT_FIELD_SADDR, | |
42 | LTT_FIELD_DADDR, | |
43 | LTT_FIELD_TOT_LEN, | |
44 | LTT_FIELD_IHL, | |
45 | LTT_FIELD_SOURCE, | |
46 | LTT_FIELD_DEST, | |
47 | LTT_FIELD_SEQ, | |
48 | LTT_FIELD_ACK_SEQ, | |
49 | LTT_FIELD_DOFF, | |
50 | LTT_FIELD_ACK, | |
51 | LTT_FIELD_RST, | |
52 | LTT_FIELD_SYN, | |
53 | LTT_FIELD_FIN, | |
f6691532 BP |
54 | LTT_FIELD_UNICAST, |
55 | LTT_FIELD_ULEN, | |
56 | LTT_FIELD_DATA_START; | |
70407e86 BP |
57 | |
58 | ||
59 | void createQuarks(); | |
60 | void registerHooks(GArray* hookListList, LttvTracesetContext* const | |
f6691532 BP |
61 | traceSetContext, LttvHook hookFunction, gpointer hookData, const bool |
62 | const* eventTypes); | |
70407e86 | 63 | void unregisterHooks(GArray* hookListList, LttvTracesetContext* const |
08365995 | 64 | traceSetContext); |
70407e86 BP |
65 | |
66 | #endif |