Skip to main content

walk_bpf_programs

Function walk_bpf_programs 

Source
pub fn walk_bpf_programs<P: PhysicalMemoryProvider>(
    reader: &ObjectReader<P>,
) -> Result<Vec<BpfProgramInfo>>
Expand description

Enumerate loaded eBPF programs by walking bpf_prog_idr in kernel memory.

If the bpf_prog_idr symbol is not found (e.g., BPF not enabled in the kernel or symbol table incomplete), returns an empty Vec.