bpf Programs in Pure Python

This proposal has been rejected.


One Line Summary

Transpiling directly from python to bpf and the cool stuff it allows us to build.


This talk is about a pure-python front-end for bpf that allows users to write simple python functions to be executed in the kernel. In addition to enabling users to write socket filters and traffic control filters, it allows users to trace the kernel with pure python scripts with no other external dependencies. I’ll start by explaining how this was made to work, focusing primarily on the systems aspects, and finish by demonstrating the features/capabilities with some working examples.


Python, bpf