Hacker GitHub

← All repos

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

Mentions per year 4 mentions · busiest year 2018 (3)
20082026
  1. 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…
  2. …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
  3. …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