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
- BtfInfo
Iter - An iterator for the btf type information of modules and programs in the kernel
- Cgroup
Link Info - Line
Info - BTF Line information
- Link
Info - Information about a BPF link
- Link
Info Iter - Iterator that returns
LinkInfo
s. - MapInfo
- Information about a BPF map
- MapInfo
Iter - Iterator that returns
MapInfo
s. - NetNs
Link Info - Prog
Info Iter - An iterator for the information of loaded bpf programs
- Prog
Info Query Options - Options to query the program info currently loaded
- Program
Info - Information about a BPF program
- RawTracepoint
Link Info - Tag
- Bpf identifier tag
- Tracing
Link Info