bpf

package
v0.0.0-...-ef8be33 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProgramNotFoundError = errors.New("programNotFoundError")
	NotImplementedError  = errors.New("NotImplementedError")
)

Functions

This section is empty.

Types

type BPFAttachType

type BPFAttachType uint32
const (
	BPFAttachTypeCgroupInetIngress BPFAttachType = 0
	BPFAttachTypeCgroupInetEgress  BPFAttachType = 1
)
type BPFLink struct {
	link.Link
}

func (*BPFLink) Destroy

func (sef *BPFLink) Destroy() error

type Map

type Map struct {
	*ebpf.Map
}

func (*Map) Update

func (self *Map) Update(key, value interface{}) error

type Module

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

func NewModule

func NewModule(collection *ebpf.Collection) *Module

func (*Module) GetMap

func (self *Module) GetMap(name string) (*Map, error)

func (*Module) GetProgram

func (self *Module) GetProgram(name string) (*Program, error)

type Program

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

func (*Program) AttachCgroupLegacy

func (self *Program) AttachCgroupLegacy(mount_point string, attach_type BPFAttachType) (*BPFLink, error)

func (*Program) AttachKprobe

func (self *Program) AttachKprobe(mount_point string) (*BPFLink, error)

func (*Program) AttachKprobeOffset

func (self *Program) AttachKprobeOffset(address uint64) (*BPFLink, error)

func (*Program) AttachKretprobe

func (self *Program) AttachKretprobe(mount_point string) (*BPFLink, error)

func (*Program) AttachKretprobeOnOffset

func (self *Program) AttachKretprobeOnOffset(address uint64) (*BPFLink, error)

func (*Program) AttachRawTracepoint

func (self *Program) AttachRawTracepoint(event string) (*BPFLink, error)

func (*Program) AttachTracepoint

func (self *Program) AttachTracepoint(class, event string) (*BPFLink, error)

func (*Program) AttachUprobe

func (self *Program) AttachUprobe(pid int, path string, address uint32) (*BPFLink, error)

func (*Program) SetAutoload

func (self *Program) SetAutoload(autoload bool) error

Jump to

Keyboard shortcuts

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