source: lib/trace.c

Revision Log Mode:


Legend:

Added
Modified
Copied or renamed
Diff Rev Age Author Log Message
(edit) @5cdb37d   2 years noreply Merge pull request #101 from jacobvw/meta-api Meta API develop
(edit) @d0f25d4   2 years jcv9 Add ERF and PCAPNG decoders to libpacketdump develop
(edit) @d4eed70   2 years jcv9 Add config option TRACE_OPTION_DISCARD_META develop
(edit) @d0941cc   2 years salcock Fix potential underflow when calculating wire length of pcap packets. … develop
(edit) @e7132d6   2 years jcv9 improvements to meta-api develop
(edit) @977e0db   2 years jcv9 Add meta api for erf and pcapng meta packets develop
(edit) @2a1eebc   2 years salcock Don't get unhappy if a pcap packet has a wire length of 65534 Our … develop
(edit) @32de4c7   2 years salcock Merge branch 'pcapng_write' of git://github.com/jacobvw/libtrace into … develop
(edit) @5fe998b   2 years salcock Make sure we zero any filter structures we allocate This fixes … develop
(edit) @9a6bdbc   2 years jcv9 Added can_write functions to each output format, Fixed … develop
(edit) @d439067   3 years salcock Move packet cached fields into a distinct structure. This will help … develop
(edit) @509ee47   3 years salcock Add option to allow users to specify a constant ERF framing length. … develop
(edit) @9c86dee   3 years jcv9 trace_create_dead not initialising startcount develop
(edit) @d7d3267   3 years salcock Merge branch 'master' of git://github.com/jacobvw/libtrace into … develop
(edit) @2193905   3 years jcv9 Apply changes required for pull request #81 develop
(edit) @1ed3f1e   3 years jcv9 Prevent trace_construct_packet creating packets will invalid linktype develop
(edit) @b6ff245   3 years jcv9 cleanup develop
(edit) @f6f3ae5   3 years jcv9 Assertion cleanup develop
(edit) @25a3255   3 years jcv9 More assertion cleanup develop
(edit) @89cc0cc   3 years jcv9 More assertion cleanups develop
(edit) @33b735c   3 years jcv9 More assertion cleanup develop
(edit) @2725318   3 years jcv9 Cleanup some of the assertions develop
(edit) @2dc1d9b   3 years jcv9 Add more informative errors instead of using assertions everywhere develop
(edit) @4161a69   3 years salcock Don't attempt to memmove NULL packet payload develop
(edit) @43aec21   3 years jcv9 Merge branch 'master' of https://github.com/libtraceteam/libtrace develop
(edit) @dc62550   3 years jacobvw Print a more suitable error when the input URI (file) is not found develop
(edit) @0bb8d49   3 years salcock Declare trace_init() as a constructor method. This is a propsed … develop
(edit) @bccdffc   3 years salcock Fix issue where reading ERF packets would cause segfaults. Stupid bug … develop
(edit) @f3e1f19   3 years salcock Make sure we use cached framing length wherever possible developringperformance
(edit) @86087c53   3 years salcock trace_get_packet_buffer() now returns NULL when content is invalid. … developringperformance
(edit) @2201d8c   3 years salcock Remove debugging output that slipped in the last commits developringdecrementfixringperformance
(edit) @37ee856   3 years salcock Tag each packet with the start iteration of the parent trace. Traces … developringdecrementfixringperformance
(edit) @c862ad1   3 years salcock Only replace packet->order if the format has not set it already. This … cachetimestampsdevelopringdecrementfixringperformance
(edit) @47d4f8c   3 years salcock Fix various string truncation/overflow warnings Thanks gcc 8! cachetimestampsdeveloprc-4.0.4ringdecrementfixringperformance
(edit) @32ee9b2   3 years salcock Add new trace_flush_output() to public API Can be used to force a … cachetimestampsdeveloprc-4.0.4ringdecrementfixringperformance
(edit) @cc9c9de   3 years salcock Add new config option for trace_event() -- REPLAY_SPEEDUP This allows … cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
(edit) @e732393   3 years salcock Improve error explanation when in-libtrace filtering fails. The … cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
(edit) @b663d33   3 years salcock etsilive format is now functional (for single-threaded only). Packets … cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
(edit) @df87f00   3 years salcock First bits of code for an ETSI live format Will probably remove the … cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
(edit) @dc27de3   3 years rsanger Only destroy previously opened message queues Fixes issue #68 cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
(edit) @c1205bd   3 years salcock Add packet reference counting API This API allows users to keep track … cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
(edit) @e375e0f   3 years salcock Fix bug where libtrace-created hasher_data was leaked. If … cachetimestampsdevelopetsiliverc-4.0.3rc-4.0.4ringdecrementfixringperformance
(edit) @9375d2e   3 years salcock Always match provenance records when applying filters rather than failing cachetimestampsdevelopetsiliverc-4.0.3rc-4.0.4ringdecrementfixringperformance
(edit) @c7e547e   4 years salcock Added a dpdkndag format for faster ndag reading Instead of joining a … cachetimestampsdevelopdpdk-ndagetsiliverc-4.0.3rc-4.0.4ringdecrementfixringperformance
(edit) @ea75ec2   4 years salcock Add new format for receiving and parsing nDAG records Also added new … cachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformance
(edit) @ed5b2ce   4 years salcock Add support for reading pcapng traces Also added special macro: … cachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformance
(edit) @d47ca18   4 years rsanger Fix issue #49 compile issues when missing BPF header file If pcap was … cachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformance
(edit) @adb2c4c   5 years rsanger Remove mutex in the packet path, which limits parallel performance … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @5e3f16c   5 years rsanger Fix for issue #39 - ring and int pstop() fails on older kernels when … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @89e2ff7   5 years rsanger Fix trace_interrupt() with busy traces Trace interrupt is now checked … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @0cdd231   5 years easetheworld Add trace_clear_statistics api. 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @903f64d   5 years salcock Fix segfault when destroying a packet from an EOF'd trace. The … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @ee6e802   5 years salcock Updated copyright blurb on all source files In some cases, this meant … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @a984307   5 years salcock Merge remote-tracking branch 'origin/develop' into libtrace4 … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @38c00dd   5 years rsanger Merge branch 'master' into develop Conflicts: lib/trace.c 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @fd4482d   5 years salcock Make sure trace_create_packet() doesn't segfault If allocating memory … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @7d1ada1   5 years git Fix memory management of trace_construct_packet. 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @9636216   5 years git Trivial whitespace fixes. 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @f0cb0d4   6 years salcock Seed the RNG when calling trace_init If we don't do this, we can't … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @92a2bf6   6 years salcock Make sure we destroy the message queue for each thread. Otherwise, we … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @d8b05b7   6 years salcock Make sure our copyright covers recent years Consistency across all of … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @348396b   6 years salcock Fix deadlock when reading parallel RT with a filter The problem was … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @d391ce0   6 years salcock Updated format_rt to use new bucket structure This should save us … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @6fac5db   6 years salcock Actually, don't free hasher_data We can't guarantee that the data was … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @ff12906   6 years salcock Fix segfaults when destroying a non-parallel trace 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @76c86fb   6 years salcock Make sure we free any hasher data associated with a trace 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @5478d3d   6 years salcock Fix all outstanding warnings Implemented trace_get_statistics for … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @f625817   6 years salcock Reworked callback API and removed old per_msg and reporter functions … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @0a368ae   6 years salcock Fix assert fail with last_packet for RT inputs 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @9a3a846   6 years rsangerarj Fix bug with commit 2fa43f Missed a case in destroy packet 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @2fa43fa   6 years rsangerarj Fixes an issue with old programs reusing a packet over multi traces … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @4007dbb   6 years rsangerarj Updates the new interface to be more complete This should work around … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @76291d1   6 years rsangerarj Add a quick mockup of shanes interface using functions for each … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @8370482   6 years rsangerarj Fix bug when not using reporter combiner is destroyed without be … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @d3849c7   6 years rsangerarj Remove lots of debug prints 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @ac65c9f   6 years rsangerarj Fix bug in reporter dectecting per-packet threads finished too early … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @91e016c   6 years rsangerarj Fix bug introduced by reseting stat counters after pause. We were … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @f50515e   6 years rsangerarj Zero out combiner when trace is created 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @e0be8382   6 years rsangerarj Merge branch 'upstream_develop' into develop 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @6b98325   6 years rsangerarj Removes pconfig_input() and replaces trace_config() with … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @584d907   6 years salcock Fix memory leak if guess_format fails Thanks to Vincenzo Caruso for … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @7718e54   6 years rsangerarj Remove locking from unregister thread, now it is in line with … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @526d9d0   6 years rsangerarj Move the accepted packet count to dispatching packets for threads. … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @694823f   6 years rsangerarj Fix issue with retriving stats from a closed parallel trace. Remove … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @5ab626a   6 years rsangerarj Deprecate trace_get_filtered/accepted/recevied/dropped() in favour of … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @4631115   6 years rsangerarj Merge branch 'master' into develop. Update to include fixes/features … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @0b01fea   6 years rsangerarj Merge branch 'ring_refactor' into develop 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @6fc1ae7   6 years rsangerarj libtrace_halt should be volatile so it doesn't get optimised out anywhere 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @858ce90   6 years rsangerarj Refactoring the packet loop Removes the pread type selection function … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @368a1ae   6 years rsangerarj Fixes filtered and accepted stat counters The accepted counter was an … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @035f8a7   6 years dan Massive refactor that involves moving ring out into its own file. … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @04bf7c5   6 years rsangerarj Remove unused sliding window code. Refactored pstart and added some … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @b73407f   6 years rsangerarj Forgot to mark libtrace_halt as volatile in the c file. 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @bdc8b36   6 years rsangerarj Reorder the zeroing in fin packet to match with memory layout. 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @1919caf   6 years rsangerarj Fix received counter always displaying 0 rather than unknown. Fix … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @9e429e8   7 years rsangerarj Merge remote-tracking branch 'upsteam/master' into develop Conflicts: … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @d994324   7 years rsangerarj Remove anything to do with the combiner from set configuration and … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @2498008   7 years rsangerarj Refactor the combining step to allow user defined functions here. … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @7fda5c5   7 years salcock Fix bogus filtered packet calc for BPF format This was essentially … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
(edit) @c70f59f   7 years salcock Don't increment accepted_packets in trace_event For formats that use … 4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Note: See TracRevisionLog for help on using the revision log.