Module libbpf_rs::btf

source ·
Expand description

Parse and introspect btf information, from files or loaded objects.

To find a specific type you can use one of 3 methods

All of these are generic over K, which is any type that can be created from a BtfType, for all of these methods, not finding any type by the passed parameter or finding a type of another BtfKind will result in a None being returned (or filtered out in the case of Btf::type_by_kind). If you want to get a type independently of the kind, just make sure K binds to BtfType.

Modules§

  • Wrappers representing concrete btf types.

Structs§

  • The btf information of a bpf object.
  • An undiscriminated btf type
  • The id of a btf type.

Enums§

Traits§

  • Some btf types have a size field, describing their size.
  • Some btf types refer to other types by their type id.