cloudflare / cloudflare/xdpcap
Timestamp at capture time
Open
- Dominant language
- Go
- Stars
- 786
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
Timestamps are currently added in userspace and likely to be inaccurate: https://github.com/cloudflare/xdpcap/blob/master/cmd/xdpcap/main.go#L120
Switch timestamps to BPF using `bpf_ktime_get_ns` (which is `clock_gettime(CLOCK_MONOTONIC)` and not the actual time, so will need some adjusting in userspace).
Contributor guide
Assessment
This issue has not been assessed yet.