projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use __attribute__((constructor))
[lttv.git]
/
lttv
/
lttv
/
sync
/
event_processing_lttng_standard.c
diff --git
a/lttv/lttv/sync/event_processing_lttng_standard.c
b/lttv/lttv/sync/event_processing_lttng_standard.c
index c3b4da23d4c3ca97942c98f9783ecd4b0a8d302d..55806dfa8922826c814a4c6ed5c6eee2e265e606 100644
(file)
--- a/
lttv/lttv/sync/event_processing_lttng_standard.c
+++ b/
lttv/lttv/sync/event_processing_lttng_standard.c
@@
-22,7
+22,6
@@
#include <config.h>
#endif
#include <config.h>
#endif
-#include <linux/if_ether.h>
#include <math.h>
#include <netinet/in.h>
#include <stdarg.h>
#include <math.h>
#include <netinet/in.h>
#include <stdarg.h>
@@
-35,6
+34,11
@@
#include "event_processing_lttng_standard.h"
#include "event_processing_lttng_standard.h"
+/* IPv4 Ethertype, taken from <linux/if_ether.h>, unlikely to change as it's
+ * defined by IANA: http://www.iana.org/assignments/ethernet-numbers
+ */
+#define ETH_P_IP 0x0800
+
// Functions common to all processing modules
static void initProcessingLTTVStandard(SyncState* const syncState, ...);
// Functions common to all processing modules
static void initProcessingLTTVStandard(SyncState* const syncState, ...);
@@
-50,7
+54,6
@@
static void writeProcessingTraceTimeOptionsLTTVStandard(SyncState* const
syncState, const unsigned int i, const unsigned int j);
// Functions specific to this module
syncState, const unsigned int i, const unsigned int j);
// Functions specific to this module
-static void registerProcessingLTTVStandard() __attribute__((constructor (102)));
static gboolean processEventLTTVStandard(void* hookData, void* callData);
static void partialDestroyProcessingLTTVStandard(SyncState* const syncState);
static gboolean processEventLTTVStandard(void* hookData, void* callData);
static void partialDestroyProcessingLTTVStandard(SyncState* const syncState);
@@
-72,7
+75,7
@@
static ProcessingModule processingModuleLTTVStandard = {
/*
* Processing Module registering function
*/
/*
* Processing Module registering function
*/
-
static
void registerProcessingLTTVStandard()
+void registerProcessingLTTVStandard()
{
g_queue_push_tail(&processingModules, &processingModuleLTTVStandard);
{
g_queue_push_tail(&processingModules, &processingModuleLTTVStandard);
This page took
0.024253 seconds
and
4
git commands to generate.