facebookresearch/py2bpf
View on GitHub ↗ ★ 179 Python archived
A python to bpf (Berkeley Packet Filter bytecode) converter
4 mentions on Hacker News by 3 people: 1 story, 3 comments · first 2018-01-08 · latest 2025-09-15
20082026
-
I did something similar a long time ago https://github.com/facebookresearch/py2bpf It was definitely a toy, I transliterated from python bytecode (a stack based vm) into bpf. I also wrote the full code gen stack myself (bpf was simpler…
comment by alexgartrell · 2025-09-15 · in PythonBPF – Writing eBPF Programs in Pure Python -
…something dumb I created in my "within working hours" free time that Facebook let me open source: https://github.com/facebookresearch/py2bpf
comment by alexgartrell · 2018-06-29 · in Python 3 at Facebook -
…you can have both the script and the BPF code in Python like many of the BCC tools currently do: https://github.com/facebookresearch/py2bpf
comment by lathiat · 2018-02-06 · in Writing eBPF tracing tools in Rust -
▲ 22
py2bpf translates functions from Python to BPF, a Linux kernel bytecodestory by stablemap · 2018-01-08 · 2 comments