Documentation ¶
Index ¶
- func GetEBPFCollectionOptionsIfNeed() *ebpf.CollectionOptions
- type EventQueue
- type LinkFunc
- type Linker
- func (m *Linker) AddLink(linkF LinkFunc, symbolWithPrograms map[string]*ebpf.Program)
- func (m *Linker) AddLinkOrError(linkF LinkFunc, symbolWithPrograms map[string]*ebpf.Program) error
- func (m *Linker) AddSysCall(call string, enter, exit *ebpf.Program)
- func (m *Linker) AddSysCallWithKProbe(call string, linkK LinkFunc, p *ebpf.Program)
- func (m *Linker) AddTracePoint(sys, name string, p *ebpf.Program)
- func (m *Linker) Close() error
- func (m *Linker) HasError() error
- func (m *Linker) OpenUProbeExeFile(path string) *UProbeExeFile
- func (m *Linker) ReadEventAsync(emap *ebpf.Map, reader RingBufferReader, dataSupplier func() interface{})
- func (m *Linker) ReadEventAsyncWithBufferSize(emap *ebpf.Map, reader RingBufferReader, perCPUBuffer int, ...)
- type PartitionContext
- type RingBufferReader
- type UProbeExeFile
- func (u *UProbeExeFile) AddGoLink(symbol string, enter, exit *ebpf.Program, elfFile *elf.File)
- func (u *UProbeExeFile) AddGoLinkWithType(symbol string, enter bool, p *ebpf.Program, elfFile *elf.File)
- func (u *UProbeExeFile) AddLink(symbol string, enter, exit *ebpf.Program)
- func (u *UProbeExeFile) AddLinkWithSymbols(symbol []string, enter, exit *ebpf.Program)
- func (u *UProbeExeFile) AddLinkWithType(symbol string, enter bool, p *ebpf.Program)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEBPFCollectionOptionsIfNeed ¶
func GetEBPFCollectionOptionsIfNeed() *ebpf.CollectionOptions
Types ¶
type EventQueue ¶ added in v0.6.0
type EventQueue struct {
// contains filtered or unexported fields
}
func NewEventQueue ¶ added in v0.6.0
func NewEventQueue(partitionCount, sizePerPartition int, contextGenerator func() PartitionContext) *EventQueue
func (*EventQueue) PartitionContexts ¶ added in v0.6.0
func (e *EventQueue) PartitionContexts() []PartitionContext
func (*EventQueue) Push ¶ added in v0.6.0
func (e *EventQueue) Push(key string, data interface{})
func (*EventQueue) RegisterReceiver ¶ added in v0.6.0
func (e *EventQueue) RegisterReceiver(emap *ebpf.Map, perCPUBufferSize int, dataSupplier func() interface{}, routeGenerator func(data interface{}) string)
type Linker ¶ added in v0.5.0
type Linker struct {
// contains filtered or unexported fields
}
func (*Linker) AddLinkOrError ¶ added in v0.5.0
func (*Linker) AddSysCall ¶ added in v0.5.0
func (*Linker) AddSysCallWithKProbe ¶ added in v0.5.0
func (*Linker) AddTracePoint ¶ added in v0.5.0
func (*Linker) OpenUProbeExeFile ¶ added in v0.5.0
func (m *Linker) OpenUProbeExeFile(path string) *UProbeExeFile
func (*Linker) ReadEventAsync ¶ added in v0.5.0
func (m *Linker) ReadEventAsync(emap *ebpf.Map, reader RingBufferReader, dataSupplier func() interface{})
func (*Linker) ReadEventAsyncWithBufferSize ¶ added in v0.5.0
func (m *Linker) ReadEventAsyncWithBufferSize(emap *ebpf.Map, reader RingBufferReader, perCPUBuffer int, dataSupplier func() interface{})
type PartitionContext ¶ added in v0.6.0
type RingBufferReader ¶ added in v0.5.0
type RingBufferReader func(data interface{})
type UProbeExeFile ¶ added in v0.5.0
type UProbeExeFile struct {
// contains filtered or unexported fields
}
func (*UProbeExeFile) AddGoLinkWithType ¶ added in v0.5.0
func (*UProbeExeFile) AddLink ¶ added in v0.5.0
func (u *UProbeExeFile) AddLink(symbol string, enter, exit *ebpf.Program)
func (*UProbeExeFile) AddLinkWithSymbols ¶ added in v0.5.0
func (u *UProbeExeFile) AddLinkWithSymbols(symbol []string, enter, exit *ebpf.Program)
func (*UProbeExeFile) AddLinkWithType ¶ added in v0.5.0
func (u *UProbeExeFile) AddLinkWithType(symbol string, enter bool, p *ebpf.Program)
Click to show internal directories.
Click to hide internal directories.