From: Mathieu Desnoyers Date: Sun, 24 Nov 2013 09:11:16 +0000 (-0500) Subject: Fix: eliminate timestamp overlap between packets X-Git-Tag: v2.4.0-rc2~14 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=1b7b0501cb18e5799d102c95592b208ca33f317a;hp=1b7b0501cb18e5799d102c95592b208ca33f317a;p=lttng-ust.git Fix: eliminate timestamp overlap between packets By using the timestamp sampled at space reservation when the packet is being filled as "end timestamp" for a packet, we can ensure there is no overlap between packet timestamp ranges, so that packet timestamp end <= following packets timestamp begin. Overlap between consecutive packets becomes an issue when the end timestamp of a packet is greater than the end timestamp of a following packet, IOW a packet completely contains the timestamp range of a following packet. This kind of situation does not allow trace viewers to do binary search within the packet timestamps. This kind of situation will typically never occur if packets are significantly larger than event size, but this fix ensures it can never even theoretically happen. The only case where packets can still theoretically overlap is if they have equal begin and end timestamps, which is valid. Signed-off-by: Mathieu Desnoyers ---