Expand description
eBPF preprocessor for relocating map file descriptors in eBPF instructions.
This module defines the EbpfPreProcessor struct and the EbpfInst trait.
The EbpfPreProcessor struct is used to preprocess eBPF instructions to relocate map file descriptors, and the EbpfInst trait defines the interface for eBPF instructions that can be processed by the preprocessor.
The preprocessor works by translating the raw eBPF instructions into a more structured format, identifying instructions that reference map file descriptors, and replacing those references with the actual pointers to the maps in kernel space. This allows the eBPF program to access the maps correctly when it is loaded into the kernel. The preprocessor also keeps track of the raw file pointers for the maps that are used in the program, which can be used for debugging or other purposes.
Structs§
- Ebpf
PreProcessor - eBPF preprocessor for relocating map file descriptors in eBPF instructions.
Traits§
- Ebpf
Inst - Trait for eBPF instructions that can be processed by the preprocessor.