dmitris / tcptracer-bpf-old

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tcptracer-bpf

tcptracer-bpf is an eBPF program using kprobes to trace TCP events. It's built as an object file that can be used with the gobpf elf package. It does not have any run-time dependencies and adapts to the currently running kernel at run-time. It does not use bcc because that would introduce a run-time dependency on the kernel headers.

See tests/tracer.go for an example how to use tcptracer-bpf with gobpf.

Build the elf object

make

The object file can be found in ebpf/ebpf.o.

Test

cd tests
make
sudo ./run

About

License:Apache License 2.0


Languages

Language:C 69.2%Language:Go 24.1%Language:Shell 4.3%Language:Makefile 2.4%