weaveworks / tcptracer-bpf

eBPF program using kprobes to trace TCP events without run-time compilation dependencies
Apache License 2.0
410 stars 61 forks source link

Add an offset to all timestamps #67

Closed bboreham closed 5 years ago

bboreham commented 5 years ago

This is attempting to correct an issue noted at https://github.com/iovisor/gobpf/issues/42

The timestamps we compute are compared against the time that poll() returned, in perf.go. By adding an offset we cause iovisor to hold back some events until a later poll, which means they are less likely to be reported out of order.