package
0.0.0-20220510090419-14c22a91224c
Repository: https://github.com/datadog/btf-internals.git
Documentation: pkg.go.dev

# Functions

Copy a Type recursively.
CORERelocate calculates the difference in types between local and target.
No description provided by the author
No description provided by the author
LoadKernelSpec returns the current kernel's BTF information.
LoadKernelSpecWithoutCache attempts to load the raw vmlinux BTF blob at /sys/kernel/btf/vmlinux and falls back to scanning the file system for vmlinux ELFs.
LoadSpecAndExtInfosFromReader reads from an ELF.
LoadSpecFromReader reads from an ELF or a raw BTF blob.
MarshalExtInfos encodes function and line info embedded in insns into kernel wire format.
NewHandle loads BTF into the kernel.
NewHandleFromID returns the BTF handle for a given id.
Sizeof returns the size of a type in bytes.
UnderlyingType skips qualifiers and Typedefs.

# Constants

No description provided by the author
No description provided by the author
extern.
extern.
Valid types of forward declaration.
Valid types of forward declaration.
global.
global.
No description provided by the author
static.
static.

# Variables

Errors returned by BTF functions.
Errors returned by BTF functions.
Errors returned by BTF functions.
The size of a FuncInfo in BTF wire format.
No description provided by the author

# Structs

Array is an array with a fixed number of elements.
Const is a qualifier.
COREFixup is the result of computing a CO-RE relocation for a target.
No description provided by the author
Datasec is a global program section containing data.
Enum lists possible values.
EnumValue is part of an Enum Is is not a valid Type.
ExtInfos contains ELF section metadata.
Float is a float of a given length.
Func is a function definition.
No description provided by the author
FuncProto is a function declaration.
Fwd is a forward declaration of a Type.
GoFormatter converts a Type to Go syntax.
Handle is a reference to BTF loaded into the kernel.
Int is an integer of a given length.
Line represents the location and contents of a single line of source code a BPF ELF was compiled from.
Member is part of a Struct or Union.
Pointer is a pointer to another type.
Restrict is a qualifier.
Spec represents decoded BTF.
Struct is a compound type of consecutive members.
Typedef is an alias of a Type.
Union is a compound type where members occupy the same memory.
Var is a global variable.
VarSecinfo describes variable in a Datasec.
Void is the unit type of BTF.
Volatile is a qualifier.

# Interfaces

Type represents a type described by BTF.

# Type aliases

FuncLinkage describes BTF function linkage metadata.
FwdKind is the type of forward declaration.
ID represents the unique ID of a BTF object.
No description provided by the author
Transformer modifies a given Type and returns the result.
TypeID identifies a type in a BTF section.
VarLinkage describes BTF variable linkage metadata.