varunrmallya
A KDE Plasma widget for switching Linux schedulers
Write eBPF programs in pure Python
Re:Write eBPF programs in pure Python
on Sunday November 01, 2026 @12:52PM (#50327887)
Hello!! We've done quite a bit with PythonBPF now. Hope y'all like it. Don't overload the playground server though.
Any Music Can Be Played for the First Time on Desmos
Re:PythonBPF – Writing eBPF Programs in Pure Python
on Monday September 15, 2025 @10:59AM (#45250498)
This is actually what we plan to do too!
Re:PythonBPF – Writing eBPF Programs in Pure Python
on Monday September 15, 2025 @10:59AM (#45250494)
Thank you! Ours is a toy for now as well, but I think the idea is pretty good, so we'll continue to work on it. (This was actually a hackathon project, so the code is pretty messy and not something I am proud of)
Re:PythonBPF – Writing eBPF Programs in Pure Python
on Monday September 15, 2025 @10:57AM (#45250469)
To be honest, this was really a hackathon project. The code quality is very very bad right now. We will be continuing to work on this to make it much better and we'll be adding documentation as we go as well. Thanks for taking a look :)
Re:PythonBPF – Writing eBPF Programs in Pure Python
on Monday September 15, 2025 @10:54AM (#45250437)
I'm the co-author.The code is in a very very bad state right now, but the architecture is pretty ok to explain. In step 3, we translate from the Python frontend to the LLVM IR. In step 4 we compile it down to an object file using the LLVM backend `llc`. This object file gets loaded into the kernel and it is what actually contains the eBPF bytecode.