Module 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§

types
Wrappers representing concrete btf types.

Structs§

Btf
The btf information of a bpf object.
BtfType
An undiscriminated btf type
TypeId
The id of a btf type.

Enums§

BtfKind
The various btf types.

Traits§

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