ebpf

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BpfEvent

type BpfEvent interface {
	Type() string
}

type EbpfCollector

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

func NewEbpfCollector

func NewEbpfCollector(parentCtx context.Context) *EbpfCollector

func (*EbpfCollector) AttachGoTlsUprobesOnProcess added in v0.2.0

func (e *EbpfCollector) AttachGoTlsUprobesOnProcess(procfs string, pid uint32) []error

func (*EbpfCollector) AttachSSlUprobes added in v0.2.0

func (e *EbpfCollector) AttachSSlUprobes(pid uint32, executablePath string, version string) error

func (*EbpfCollector) AttachSslUprobesOnProcess added in v0.2.0

func (t *EbpfCollector) AttachSslUprobesOnProcess(procfs string, pid uint32) []error

func (*EbpfCollector) AttachUprobesForEncrypted added in v0.2.1

func (e *EbpfCollector) AttachUprobesForEncrypted()

runs as one goroutine

func (*EbpfCollector) Done

func (e *EbpfCollector) Done() chan struct{}

func (*EbpfCollector) EbpfEvents

func (e *EbpfCollector) EbpfEvents() chan interface{}

func (*EbpfCollector) EbpfProcEvents added in v0.5.0

func (e *EbpfCollector) EbpfProcEvents() chan interface{}

func (*EbpfCollector) EbpfTcpEvents added in v0.5.1

func (e *EbpfCollector) EbpfTcpEvents() chan interface{}

func (*EbpfCollector) Init added in v0.5.1

func (e *EbpfCollector) Init()

func (*EbpfCollector) ListenEvents added in v0.5.1

func (e *EbpfCollector) ListenEvents()

func (*EbpfCollector) TlsAttachQueue added in v0.5.1

func (e *EbpfCollector) TlsAttachQueue() chan uint32

type Program added in v0.5.1

type Program interface {
	Load()                                            // Load bpf program to kernel
	Attach()                                          // attach links to programs, in case error process must exit
	InitMaps()                                        // initialize bpf map readers, must be called before Consume
	Consume(ctx context.Context, ch chan interface{}) // consume bpf events, publishes to chan provided
	Close()                                           // release resources
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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