Re:PythonBPF – Writing eBPF Programs in Pure Python
by grantseltzer on Monday September 15, 2025 @07:16AM
(#45248353)
bcc hasn't been relevant for years.
[ Parent
| on HN ]
Re:PythonBPF – Writing eBPF Programs in Pure Python
by _bobm on Monday September 15, 2025 @09:00AM
(#45249162)
I have been a bit out of the loop. what is relevant these days for writing ebpf code? what about ebpf code in python?
Re:PythonBPF – Writing eBPF Programs in Pure Python
by grantseltzer on Monday September 15, 2025 @10:13AM
(#45250001)
Writing it in C, compiling with clang, and loading with either C(libbpf), Go (cilium/ebpf), or Rust (Aya).
You can also write bpf in rust with Aya but i'm not sure how feature complete it is.
For very simple use cases you can just bpftrace.
Re:PythonBPF – Writing eBPF Programs in Pure Python
by nickysielicki on Monday September 15, 2025 @09:28AM
(#45249470)
bpftrace is nicer to work with and can replace bcc in most cases for debugging.