loader

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// DefaultVmlinuxHeaderDir is the default runtime include directory used by plugins.
	DefaultVmlinuxHeaderDir = "/tmp/retina/include"
	// VmlinuxHeaderDirEnv is an optional env var to override the runtime include directory.
	VmlinuxHeaderDirEnv = "RETINA_VMLINUX_HEADER_DIR"
	// VmlinuxHeaderFileName is the generated runtime BTF header filename.
	VmlinuxHeaderFileName = "vmlinux.h"
	// VmlinuxKernelReleaseFileName stores the kernel release used to generate vmlinux.h.
	VmlinuxKernelReleaseFileName = "vmlinux.kernel.release"
)

Variables

This section is empty.

Functions

func CompileEbpf

func CompileEbpf(ctx context.Context, args ...string) error

func GenerateVmlinuxH added in v1.2.0

func GenerateVmlinuxH(ctx context.Context, outputDir string) error

func PrepareVmlinuxH added in v1.2.0

func PrepareVmlinuxH(ctx context.Context) (string, error)

PrepareVmlinuxH ensures runtime vmlinux.h exists and returns the include dir.

func VmlinuxHeaderDir added in v1.2.0

func VmlinuxHeaderDir() string

VmlinuxHeaderDir returns the runtime directory where vmlinux.h is expected.

func VmlinuxHeaderPath added in v1.2.0

func VmlinuxHeaderPath() string

VmlinuxHeaderPath returns the full runtime path to vmlinux.h.

func WriteFile

func WriteFile(ctx context.Context, destFile, text string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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