Documentation
¶
Index ¶
- Variables
- type BPFAttachType
- type BPFLink
- type Map
- type Module
- type Program
- func (self *Program) AttachCgroupLegacy(mount_point string, attach_type BPFAttachType) (*BPFLink, error)
- func (self *Program) AttachKprobe(mount_point string) (*BPFLink, error)
- func (self *Program) AttachKprobeOffset(address uint64) (*BPFLink, error)
- func (self *Program) AttachKretprobe(mount_point string) (*BPFLink, error)
- func (self *Program) AttachKretprobeOnOffset(address uint64) (*BPFLink, error)
- func (self *Program) AttachRawTracepoint(event string) (*BPFLink, error)
- func (self *Program) AttachTracepoint(class, event string) (*BPFLink, error)
- func (self *Program) AttachUprobe(pid int, path string, address uint32) (*BPFLink, error)
- func (self *Program) SetAutoload(autoload bool) error
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 Module ¶
type Module struct {
// contains filtered or unexported fields
}
func NewModule ¶
func NewModule(collection *ebpf.Collection) *Module
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 (*Program) AttachKprobeOffset ¶
func (*Program) AttachKretprobe ¶
func (*Program) AttachKretprobeOnOffset ¶
func (*Program) AttachRawTracepoint ¶
func (*Program) AttachTracepoint ¶
func (*Program) AttachUprobe ¶
func (*Program) SetAutoload ¶
Click to show internal directories.
Click to hide internal directories.