Versions in this module Expand all Collapse all v1 v1.0.0 Nov 25, 2020 Changes in this version + const BPFDirGlobals — linux/amd64 + const BPFFSPath — linux/amd64 + const PIN_CUSTOM_NS — linux/amd64 + const PIN_GLOBAL_NS — linux/amd64 + const PIN_NONE — linux/amd64 + const PIN_OBJECT_NS — linux/amd64 + func AttachCgroupProgram(cgroupProg *CgroupProgram, cgroupPath string, attachType AttachType) error — linux/amd64 + func AttachCgroupProgramFromFd(progFd int, cgroupPath string, attachType AttachType) error — linux/amd64 + func AttachSocketFilter(socketFilter *SocketFilter, sockFd int) error — linux/amd64 + func AttachUprobe(uprobe *Uprobe, path string, offset uint64) error — linux/amd64 + func CurrentKernelVersion() (uint32, error) — linux/amd64 + func DetachCgroupProgram(cgroupProg *CgroupProgram, cgroupPath string, attachType AttachType) error — linux/amd64 + func DetachSocketFilter(socketFilter *SocketFilter, sockFd int) error — linux/amd64 + func GetProgFd(pinPath string) int — linux/amd64 + func GetSyscallFnName(name string) (string, error) — linux/amd64 + func KernelVersionFromReleaseString(releaseString string) (uint32, error) — linux/amd64 + func NowNanoseconds() uint64 + func PinObject(fd int, pinPath string) error — linux/amd64 + func PinObjectGlobal(fd int, namespace, name string) error — linux/amd64 + type AttachType int — linux/amd64 + const EgressType + const IngressType + const SockCreateType + type AttachType struct — darwin/amd64, js/wasm, windows/amd64 + type BPFKProbePerf struct — darwin/amd64, js/wasm, windows/amd64 + func NewBpfPerfEvent(fileName string) *BPFKProbePerf + func (b *BPFKProbePerf) Load() error + func (b *BPFKProbePerf) PollStart(mapName string, receiverChan chan []byte, lostChan chan uint64) + func (b *BPFKProbePerf) PollStop(mapName string) + type CgroupProgram struct + Name string + func (p *CgroupProgram) Fd() int + type CloseOptions struct + PinPath string + Unpin bool + type Kprobe struct + Name string + func (kp *Kprobe) Fd() int + type Map struct + Name string + func (m *Map) Fd() int + type Module struct + func NewModule(fileName string) *Module + func NewModuleFromReader(fileReader io.ReaderAt) *Module + func NewModuleFromReaderWithLog(fileReader io.ReaderAt, logSize uint32) *Module + func NewModuleWithLog(fileName string, logSize uint32) *Module + func (b *Module) AttachParserVerdictPrograms() error + func (b *Module) AttachProgram(cgroupProg *CgroupProgram, cgroupPath string, attachType AttachType) error + func (b *Module) AttachSockmapProgramFromFd(sockmapFd, skSkbProgFd int, programType uint32) error + func (b *Module) AttachXDP(devName string, secName string) error + func (b *Module) AttachXDPWithFlags(devName string, secName string, flags uint32) error + func (b *Module) CgroupProgram(name string) *CgroupProgram + func (b *Module) Close() error + func (b *Module) CloseExt(options map[string]CloseOptions) error + func (b *Module) DeleteElement(mp *Map, key unsafe.Pointer) error + func (b *Module) EnableKprobe(secName string, maxactive int) error + func (b *Module) EnableKprobes(maxactive int) error + func (b *Module) EnableOptionCompatProbe() + func (b *Module) EnableTracepoint(secName string) error + func (b *Module) IterCgroupProgram() <-chan *CgroupProgram + func (b *Module) IterKprobes() <-chan *Kprobe + func (b *Module) IterMaps() <-chan *Map + func (b *Module) IterSchedProgram() <-chan *SchedProgram + func (b *Module) IterSocketFilter() <-chan *SocketFilter + func (b *Module) IterTracepointProgram() <-chan *TracepointProgram + func (b *Module) IterUprobes() <-chan *Uprobe + func (b *Module) IterXDPProgram() <-chan *XDPProgram + func (b *Module) Kprobe(name string) *Kprobe + func (b *Module) Load(parameters map[string]SectionParams) error + func (b *Module) Log() []byte + func (b *Module) LookupAndDeleteElement(mp *Map, value unsafe.Pointer) error + func (b *Module) LookupElement(mp *Map, key, value unsafe.Pointer) error + func (b *Module) LookupNextElement(mp *Map, key, nextKey, value unsafe.Pointer) (bool, error) + func (b *Module) Map(name string) *Map + func (b *Module) PerfMapStop(mapName string) error + func (b *Module) RemoveXDP(devName string) error + func (b *Module) SchedProgram(name string) *SchedProgram + func (b *Module) SocketFilter(name string) *SocketFilter + func (b *Module) UpdateElement(mp *Map, key, value unsafe.Pointer, flags uint64) error + func (b *Module) Uprobe(name string) *Uprobe + func (b *Module) XDPProgram(name string) *XDPProgram + type OrderedBytesArray struct — linux/amd64 + func (a OrderedBytesArray) Len() int + func (a OrderedBytesArray) Less(i, j int) bool + func (a OrderedBytesArray) Swap(i, j int) + type PerfEventHeader struct — linux/amd64 + Misc uint16 + TotalSize uint16 + Type uint32 + type PerfEventLost struct — linux/amd64 + Id uint64 + Lost uint64 + type PerfEventSample struct — linux/amd64 + Size uint32 + type PerfMap struct + func InitPerfMap(b *Module, mapName string, receiverChan chan []byte, lostChan chan uint64) (*PerfMap, error) + func (pm *PerfMap) DumpBackward() (out [][]byte) + func (pm *PerfMap) PollStart() + func (pm *PerfMap) PollStop() + func (pm *PerfMap) SetTimestampFunc(timestamp func(*[]byte) uint64) + func (pm *PerfMap) SwapAndDumpBackward() (out [][]byte) + type SchedProgram struct + Name string + func (sp *SchedProgram) Fd() int + type SectionParams struct + MapMaxEntries int + PerfRingBufferBackward bool + PerfRingBufferOverwritable bool + PerfRingBufferPageCount int + PinPath string + SkipPerfMapInitialization bool + type SkSkbProgram struct — linux/amd64 + Name string + type SocketFilter struct + Name string + func (sf *SocketFilter) Fd() int + type TracepointProgram struct + Name string + func (tp *TracepointProgram) Fd() int + type Uprobe struct — linux/amd64 + Name string + func (up *Uprobe) Fd() int + type XDPProgram struct — linux/amd64 + Name string + func (xdpp *XDPProgram) Fd() int