summaryrefslogtreecommitdiff
path: root/internal/event/pair_test.go
AgeCommit message (Collapse)Author
2026-05-13fix: guard Pair.CalculateDurations against uint64 underflow on clock skewPaul Buetow
BPF timestamps can be non-monotonic across CPUs (NTP step, TSC skew). When exit < enter or enter < prevPairTime the uint64 subtraction wraps to a huge value, corrupting latency histograms and flamegraph weights. Clamp both Duration and DurationToPrev to 0 instead of underflowing. Add TestPairCalculateDurationsNegativeDelta to cover this case. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10eventloop: bound pending enter and proc-fd caches (task 425)Paul Buetow
2026-03-05Normalize Go import grouping with local ior sectionPaul Buetow
2026-02-23tests: cover durationToPrev gap semanticsPaul Buetow