Module query

Source
Expand description

Query the host about BPF

For example, to list the name of every bpf program running on the system:

use libbpf_rs::query::ProgInfoIter;

let mut iter = ProgInfoIter::default();
for prog in iter {
    println!("{}", prog.name.to_string_lossy());
}

Structs§

BtfInfo
Information about BPF type format
BtfInfoIter
An iterator for the btf type information of modules and programs in the kernel
CgroupLinkInfo
LineInfo
BTF Line information
LinkInfo
Information about a BPF link
LinkInfoIter
Iterator that returns LinkInfos.
MapInfo
Information about a BPF map
MapInfoIter
Iterator that returns MapInfos.
NetNsLinkInfo
ProgInfoIter
An iterator for the information of loaded bpf programs
ProgInfoQueryOptions
Options to query the program info currently loaded
ProgramInfo
Information about a BPF program
RawTracepointLinkInfo
Tag
Bpf identifier tag
TracingLinkInfo

Enums§

LinkTypeInfo