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