btf

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCachedBTF

func GetCachedBTF() *btf.Spec

func GetCachedBTFFile

func GetCachedBTFFile() string

func InitCachedBTF

func InitCachedBTF(ctx context.Context, lib, btf string) error

func NewBTF

func NewBTF() (*btf.Spec, error)

func ValidateKprobeSpec

func ValidateKprobeSpec(bspec *btf.Spec, kspec *v1alpha1.KProbeSpec) error

ValidateKprobeSpec validates a kprobe spec based on BTF information

NB: turns out we need more than BTF information for the validation (see syscalls). We still keep this code in the btf package for now, and we can move it once we found a better home for it.

Types

type ValidationFailed

type ValidationFailed struct {
	// contains filtered or unexported fields
}

ValidationFailed is used to mark that validation was not successful and that the we should not continue with loading this spec.

func (*ValidationFailed) Error

func (e *ValidationFailed) Error() string

type ValidationWarn

type ValidationWarn struct {
	// contains filtered or unexported fields
}

ValidationWarn is used to mark that validation was not successful but it's not clear that the spec is problematic. Callers may use this error to issue a warning instead of aborting

func (*ValidationWarn) Error

func (e *ValidationWarn) Error() string

Jump to

Keyboard shortcuts

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