Versions in this module Expand all Collapse all v0 v0.10.1 Jun 27, 2023 v0.10.0 Jun 26, 2023 Changes in this version + const CgroupType + const IterType + const KprobeMultiType + const NetNsType + const PerfEventType + const RawTracepointType + const TracingType + const UnspecifiedType + const XDPType + var ErrNoSymbol = errors.New("not found") + var ErrNotSupported = internal.ErrNotSupported + func AttachSocketFilter(conn syscall.Conn, program *ebpf.Program) error + func DetachSocketFilter(conn syscall.Conn) error + func QueryPrograms(opts QueryOptions) ([]ebpf.ProgramID, error) + func RawAttachProgram(opts RawAttachProgramOptions) error + func RawDetachProgram(opts RawDetachProgramOptions) error + type CgroupInfo sys.CgroupLinkInfo + type CgroupOptions struct + Attach ebpf.AttachType + Path string + Program *ebpf.Program + type Executable struct + func OpenExecutable(path string) (*Executable, error) + func (ex *Executable) Uprobe(symbol string, prog *ebpf.Program, opts *UprobeOptions) (Link, error) + func (ex *Executable) Uretprobe(symbol string, prog *ebpf.Program, opts *UprobeOptions) (Link, error) + type ID = sys.LinkID + type Info struct + ID ID + Program ebpf.ProgramID + Type Type + func (r Info) Cgroup() *CgroupInfo + func (r Info) NetNs() *NetNsInfo + func (r Info) Tracing() *TracingInfo + func (r Info) XDP() *XDPInfo + type Iter struct + func AttachIter(opts IterOptions) (*Iter, error) + func (it *Iter) Open() (io.ReadCloser, error) + type IterOptions struct + Map *ebpf.Map + Program *ebpf.Program + type KprobeMultiOptions struct + Addresses []uintptr + Cookies []uint64 + Symbols []string + type KprobeOptions struct + Cookie uint64 + Offset uint64 + RetprobeMaxActive int + TraceFSPrefix string + type LSMOptions struct + Cookie uint64 + Program *ebpf.Program + type Link interface + Close func() error + Info func() (*Info, error) + Pin func(string) error + Unpin func() error + Update func(*ebpf.Program) error + func AttachCgroup(opts CgroupOptions) (cg Link, err error) + func AttachFreplace(targetProg *ebpf.Program, name string, prog *ebpf.Program) (Link, error) + func AttachLSM(opts LSMOptions) (Link, error) + func AttachRawTracepoint(opts RawTracepointOptions) (Link, error) + func AttachTracing(opts TracingOptions) (Link, error) + func AttachXDP(opts XDPOptions) (Link, error) + func Kprobe(symbol string, prog *ebpf.Program, opts *KprobeOptions) (Link, error) + func KprobeMulti(prog *ebpf.Program, opts KprobeMultiOptions) (Link, error) + func Kretprobe(symbol string, prog *ebpf.Program, opts *KprobeOptions) (Link, error) + func KretprobeMulti(prog *ebpf.Program, opts KprobeMultiOptions) (Link, error) + func LoadPinnedLink(fileName string, opts *ebpf.LoadPinOptions) (Link, error) + func NewLinkFromFD(fd int) (Link, error) + func Tracepoint(group, name string, prog *ebpf.Program, opts *TracepointOptions) (Link, error) + type NetNsInfo sys.NetNsLinkInfo + type NetNsLink struct + func AttachNetNs(ns int, prog *ebpf.Program) (*NetNsLink, error) + type QueryOptions struct + Attach ebpf.AttachType + Path string + QueryFlags uint32 + type RawAttachProgramOptions struct + Attach ebpf.AttachType + Flags uint32 + Program *ebpf.Program + Replace *ebpf.Program + Target int + type RawDetachProgramOptions struct + Attach ebpf.AttachType + Program *ebpf.Program + Target int + type RawLink struct + func AttachRawLink(opts RawLinkOptions) (*RawLink, error) + func (l *RawLink) Close() error + func (l *RawLink) FD() int + func (l *RawLink) Info() (*Info, error) + func (l *RawLink) IsPinned() bool + func (l *RawLink) Pin(fileName string) error + func (l *RawLink) Unpin() error + func (l *RawLink) Update(new *ebpf.Program) error + func (l *RawLink) UpdateArgs(opts RawLinkUpdateOptions) error + type RawLinkOptions struct + Attach ebpf.AttachType + BTF btf.TypeID + Flags uint32 + Program *ebpf.Program + Target int + type RawLinkUpdateOptions struct + Flags uint32 + New *ebpf.Program + Old *ebpf.Program + type RawTracepointOptions struct + Name string + Program *ebpf.Program + type TracepointOptions struct + Cookie uint64 + type TracingInfo sys.TracingLinkInfo + type TracingOptions struct + AttachType ebpf.AttachType + Cookie uint64 + Program *ebpf.Program + type Type = sys.LinkType + type UprobeOptions struct + Address uint64 + Cookie uint64 + Offset uint64 + PID int + RefCtrOffset uint64 + TraceFSPrefix string + type XDPAttachFlags uint32 + const XDPDriverMode + const XDPGenericMode + const XDPOffloadMode + type XDPInfo sys.XDPLinkInfo + type XDPOptions struct + Flags XDPAttachFlags + Interface int + Program *ebpf.Program