Tag

libbpf

1 views collected around this technical thread.

OPPO Kernel Craftsman
OPPO Kernel Craftsman
Aug 25, 2023 · Operations

In‑Depth Walkthrough of libbpf vfsstat BPF Program Opening and Initialization

The article walks through libbpf’s step‑by‑step process for opening the vfsstat.bpf.o ELF object, validating options, parsing ELF headers, collecting sections, initializing maps and programs, and preparing the eBPF program for later kernel loading and attachment.

BPF program loadingELF parsingLinux kernel
0 likes · 16 min read
In‑Depth Walkthrough of libbpf vfsstat BPF Program Opening and Initialization