PythonBPF - writing eBPF programs in Python
H.1308 (Rolin) | Day 1 | 16:30 - 17:00 | Speakers: Pragyansh Chaturvedi, Varun R Mallya
Abstract
This talk aims to present the first major release of PythonBPF and how other developers can start using it. The speakers will discuss the progress of this project since it was demoed at LPC 2025 in December 2025 (what actions were taken on the feedback gathered at LPC).
PythonBPF is a project that enables developers to write eBPF programs in pure Python. We allow a reduced Python grammar to be used for the eBPF-specific parts of code. This allows users to: - Write both eBPF logic and userspace code in Python (and can be in the same file), so the Python dev-tools apply to the whole file instead of just the non-BPF parts. - Process eBPF data and visualize it using Python's ecosystem, and interactively develop and debug eBPF programs using Python notebooks.
Attachments
Speakers
I am a software engineer at Canonical working on maintaining Ubuntu for the Raspberry Pi. I am also the co-maintainer of PythonBPF. I am interested in low-level systems, compilers and DBs
Interested in low level programming, Linux networking and eBPF. Also work with profiling software, network protocols and LLVM.
I am also the co-author of PythonBPF and pylibbpf.
Find my blogs at https://xeon.me , https://planet.gnome.org
and some of my work at https://github.com/varun-r-mallya and https://gitlab.gnome.org/varunrmallya.
Links
External Links
Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.
