18–20 Sept 2024
Europe/Vienna timezone

Modernizing bpftrace with libbpf

19 Sept 2024, 15:30
30m
"Hall N1" (Austria Center)

"Hall N1"

Austria Center

180
eBPF Track eBPF Track

Speaker

Viktor Malik (Red Hat)

Description

bpftrace is a popular, BPF-powered tool for observability of both the kernel and userspace. It comes with a domain-specific language, bpfscript, which it compiles into BPF bytecode.

In the past year, bpftrace modernized the way it creates BPF programs by making the emitted BPF ELF objects compatible with libbpf's bpf_object. This allows bpftrace to use modern BPF features such as subprograms, relocations, or global variables.

In this talk, we will walk you through the most important steps and help you understand what are the obstacles and challenges of creating a custom BPF front-end which is compatible with state-of-the-art BPF technology, using libbpf as the back-end.

Along the journey, we also ran into several issues and missing features in libbpf. We would like to discuss them with the community and propose potential solutions.

Primary author

Viktor Malik (Red Hat)

Presentation materials

There are no materials yet.