ebpf

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 18 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()

we check the size of the executable before reading it into memory because it can be very large otherwise we can get stuck to memory limit defined in k8s

func (*EbpfCollector) Deploy

func (e *EbpfCollector) Deploy()

func (*EbpfCollector) Done

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

func (*EbpfCollector) EbpfEvents

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

func (*EbpfCollector) ListenForEncryptedReqs added in v0.2.0

func (e *EbpfCollector) ListenForEncryptedReqs(pid uint32)

in order to prevent the memory peak at the beginning we'll attach to processes one by one

type PidLocks added in v0.2.0

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

func NewPidLocks added in v0.2.0

func NewPidLocks() *PidLocks

func (*PidLocks) Lock added in v0.2.0

func (p *PidLocks) Lock(pid uint32)

func (*PidLocks) Release added in v0.2.0

func (p *PidLocks) Release(pid uint32)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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