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§
- Information about BPF type format
- An iterator for the btf type information of modules and programs in the kernel
- BTF Line information
- Information about a BPF link
- Iterator that returns
LinkInfo
s. - Information about a BPF map
- Iterator that returns
MapInfo
s. - An iterator for the information of loaded bpf programs
- Options to query the program info currently loaded
- Information about a BPF program
- Bpf identifier tag