3 ms·
CO-RE is great, but for those who have to run on older kernels an approach is to loop, guessing the offset and running an experiment to see if correct: https:/
by bboreham 6y ago
CO-RE is great, but for those who have to run on older kernels an approach is to loop, guessing the offset and running an experiment to see if correct:
https://github.com/weaveworks/tcptracer-bpf/blob/cd53e7c84baca8cc63cb689185b93a14b0169848/tcptracer-bpf.c#L217 https://github.com/weaveworks/tcptracer-bpf/blob/cd53e7c84ba...
This was done (by Kinvolk) for the visualisation tool Weave Scope; also picked up by DataDog https://github.com/DataDog/datadog-process-agent/tree/master/ebpf https://github.com/DataDog/datadog-process-agent/tree/master...