Instrumenting CPython with eBPF
07-20, 11:20–11:50 (Europe/Prague), Terrace 2A

eBPF is a amazing technology that can run sandboxed programs in a privileged context such as the operating system kernel. But are eBPF programs limited to the operating system kernel? eBPF programs have fast access to resources like memory. These programs can access the memory of running Python applications very faster, allowing you to instrument Python processes with low overhead!

In my presentation, I will show how Python's internal structure supports instrumentation through the use of eBPF. Following that, we'll experiment with eBPF and other modern techniques to instrumenting the Python applications. I'll explain explain why eBPF is more appropriate and efficient technology for instrumentation. By the end of the session, we will have developed an eBPF-based simple tracing tool for instrumenting Python applications.

After this presentation, you will better understand how eBPF can help you in the instrumentation of Python applications.


Expected audience expertise

intermediate

Furkan Onder is a Python developer who loves to work on the open-source and Python Software Foundation Contributer Member.