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 - Information about a cgroup link
- Kprobe
Multi Link Info - Information about a multi-kprobe link.
- Line
Info - BTF Line information.
- Link
Info - Information about a BPF link. Maps to
struct bpf_link_info
in kernel uapi. - Link
Info Iter - Iterator that returns
LinkInfo
s. - MapInfo
- Information about a BPF map. Maps to
struct bpf_map_info
in kernel uapi. - MapInfo
Iter - Iterator that returns
MapInfo
s. - NetNs
Link Info - Information about a network namespace link.
- Netfilter
Link Info - Information about a BPF netfilter link.
- Netkit
Link Info - Information about a BPF netkit link.
- 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. Maps to
struct bpf_prog_info
in kernel uapi. - RawTracepoint
Link Info - Information about a raw tracepoint.
- Sock
MapLink Info - Information about a BPF sockmap link.
- Struct
OpsLink Info - Information about a BPF
struct_ops
link. - Tag
- Bpf identifier tag.
- TcxLink
Info - Information about a BPF tc link.
- Tracing
Link Info - Information about a tracing link
- Uprobe
Multi Link Info - Information about a multi-uprobe link.
- XdpLink
Info - Information about a XDP link.
Enums§
- Link
Type Info - Information about BPF link types. Maps to the anonymous union in
struct bpf_link_info
in kernel uapi.