Download PDFOpen PDF in browserCurrent versioneBPF - From a Programmer’s PerspectiveEasyChair Preprint 5198, version 112 pages•Date: March 23, 2021AbstracteBPF allows software developers to write programsthat are executed in the kernel without requiring re-compilation and system restart. These programs cancollect critical performance metrics when a kernel func-tion is invoked. In this paper, we will describe and dis-cuss the architecture of eBPF using libbpf as well asthe core components of it. We will look at key differ-ences between eBPF programs and typical user-spaceC programs. Lastly, we will look into some real-worlduse-cases of eBPF. We will, however, not discuss perfor-mance numbers or formal proofs. This paper is merelya summary of countless hours of reading through eBPFtextbooks, blog posts, eBPF samples and kernel code. Keyphrases: Performance, eBPF, tracing
|