- Timestamp:
- 11/01/05 14:51:44 (17 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
- 44c6c85
- Parents:
- 77509e9
- Location:
- lib
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/Makefile.am
r78f750e r803ea87 1 1 lib_LTLIBRARIES = libtrace.la 2 include_HEADERS = libtrace.h dagformat.h wag.h daglegacy.h rt_protocol.h2 include_HEADERS = libtrace.h dagformat.h wag.h daglegacy.h 3 3 4 4 if DAG2_4 5 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h rt_protocol.h5 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h 6 6 nodist_libtrace_la_SOURCES = dagopts.c dagapi.c 7 7 else 8 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h rt_protocol.h8 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h 9 9 endif 10 10 -
lib/format_erf.c
r8013711 r803ea87 78 78 #endif 79 79 80 #define COLLECTOR_PORT 3435 81 80 82 /* Catch undefined O_LARGEFILE on *BSD etc */ 81 83 #ifndef O_LARGEFILE -
lib/libtrace.h
r8013711 r803ea87 31 31 #ifndef LIBTRACE_H 32 32 #define LIBTRACE_H 33 34 #include <sys/types.h>35 #include <netinet/in.h>36 #include "rt_protocol.h"37 /** API version as 2 byte hex digits, eg 0xXXYYZZ */38 #define LIBTRACE_API_VERSION 0x020016 /* 2.0.22 */39 40 #ifdef __cplusplus41 extern "C" {42 #endif43 44 /* Function does not depend on anything but its45 * parameters, used to hint gcc's optimisations46 */47 #if __GNUC__ >= 348 # define SIMPLE_FUNCTION __attribute__((pure))49 #else50 # define SIMPLE_FUNCTION51 #endif52 53 33 54 34 /** @file … … 76 56 */ 77 57 78 #define COLLECTOR_PORT 3435 58 #include <sys/types.h> 59 #include <netinet/in.h> 60 /** API version as 2 byte hex digits, eg 0xXXYYZZ */ 61 #define LIBTRACE_API_VERSION 0x020017 /* 2.0.23 */ 62 63 #ifdef __cplusplus 64 extern "C" { 65 #endif 66 67 /* Function does not depend on anything but its 68 * parameters, used to hint gcc's optimisations 69 */ 70 #if __GNUC__ >= 3 71 # define SIMPLE_FUNCTION __attribute__((pure)) 72 #else 73 # define SIMPLE_FUNCTION 74 #endif 75 76 #define RT_DATA 1 77 #define RT_MSG 2 79 78 80 79 … … 95 94 char buffer[LIBTRACE_PACKET_BUFSIZE]; 96 95 size_t size; 97 rt_status_t status; 98 }; 96 struct { 97 uint8_t type; 98 uint8_t reserved; 99 uint16_t message; 100 } status; 101 } __attribute__ ((packed)); 99 102 100 103
Note: See TracChangeset
for help on using the changeset viewer.