Changeset 8c42377
- Timestamp:
- 06/23/14 16:00:14 (7 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 5876154, e3a639a
- Parents:
- 014f733
- Location:
- lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/data-struct/deque.c
rfac8c46 r8c42377 3 3 #include <assert.h> 4 4 #include <stddef.h> 5 #include < malloc.h>5 #include <stdlib.h> 6 6 #include <string.h> 7 7 -
lib/data-struct/message_queue.h
r82facc5 r8c42377 6 6 7 7 #define LIBTRACE_MQ_FAILED INT_MIN 8 typedef struct libtrace_thread_t libtrace_thread_t;9 8 typedef struct libtrace_message_queue_t { 10 9 int pipefd[2]; -
lib/data-struct/vector.h
rfac8c46 r8c42377 7 7 8 8 typedef void (*vector_data_fn)(void *data); 9 typedefstruct libtrace_vector {9 struct libtrace_vector { 10 10 size_t max_size; 11 11 size_t size; … … 13 13 char *elements; // Means we can use array indexing 14 14 pthread_mutex_t lock; 15 } libtrace_vector_t;15 }; 16 16 17 17 DLLEXPORT void libtrace_vector_init(libtrace_vector_t *v, size_t element_size); -
lib/hash_toeplitz.c
r29bbef0 r8c42377 7 7 */ 8 8 #include "hash_toeplitz.h" 9 #include <malloc.h>10 9 #include <string.h> 11 10 #include <stdlib.h> -
lib/libtrace.h.in
r85e87b5 r8c42377 203 203 } libtrace_result_t; 204 204 205 typedef struct libtrace_message_t libtrace_message_t;206 207 205 typedef struct libtrace_thread_t libtrace_thread_t; 208 206 … … 3112 3110 /*@}*/ 3113 3111 3112 union libtrace_64byte_things { 3113 void *ptr; 3114 int64_t sint64; 3115 uint64_t uint64; 3116 uint32_t uint32s[2]; 3117 int32_t sint32s[2]; 3118 uint32_t uint32; 3119 int32_t sint32; 3120 int sint; 3121 unsigned int uint; 3122 char schars[8]; 3123 char uchars[8]; 3124 }; 3125 3126 typedef struct libtrace_message_t { 3127 int code; 3128 union libtrace_64byte_things additional; 3129 libtrace_thread_t *sender; 3130 } libtrace_message_t; 3131 3114 3132 typedef void* (*fn_per_pkt)(libtrace_t* trace, libtrace_packet_t *p, libtrace_message_t *m, libtrace_thread_t *thread); 3115 3133 typedef void* (*fn_reducer)(libtrace_t* trace, void* global_blob); … … 3157 3175 3158 3176 DLLEXPORT int retrive_first_packet(libtrace_t *libtrace, libtrace_packet_t **packet, struct timeval **tv); 3159 3160 union libtrace_64byte_things {3161 void *ptr;3162 int64_t sint64;3163 uint64_t uint64;3164 uint32_t uint32s[2];3165 int32_t sint32s[2];3166 uint32_t uint32;3167 int32_t sint32;3168 int sint;3169 unsigned int uint;3170 char schars[8];3171 char uchars[8];3172 };3173 3174 typedef struct libtrace_message_t {3175 int code;3176 union libtrace_64byte_things additional;3177 libtrace_thread_t *sender;3178 } libtrace_message_t;3179 3177 3180 3178 typedef enum { -
lib/libtrace_int.h
rb13b939 r8c42377 203 203 * Information of this thread 204 204 */ 205 typedefstruct libtrace_thread_t {205 struct libtrace_thread_t { 206 206 libtrace_t * trace; 207 207 void* ret; … … 225 225 // For thread safety reason we actually must store this here 226 226 int64_t tracetime_offset_usec; 227 } libtrace_thread_t;227 }; 228 228 229 229 /**
Note: See TracChangeset
for help on using the changeset viewer.