btfgen

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package btfgen provides a way to load BTF information generated with btfgen. Files to be incluided into the binary have to be generated with BTFGen (make btfgen on the root) before compiling the binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBTFSpec

func GetBTFSpec() *btf.Spec

GetBTFSpec returns the BTF spec with kernel information for the current kernel version. If the kernel exposes BTF information or if the BTF for this kernel is not found, it returns nil.

Types

type OsInfo added in v0.28.0

type OsInfo struct {
	ID        string
	VersionID string
	Arch      string
	Kernel    string
}

func GetOSInfo added in v0.28.0

func GetOSInfo() (*OsInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL