ebpftracer

package
v1.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Overview

generated - do not edit

Index

Constants

View Source
const (
	EventTypeProcessStart    EventType = 1
	EventTypeProcessExit     EventType = 2
	EventTypeConnectionOpen  EventType = 3
	EventTypeConnectionClose EventType = 4
	EventTypeConnectionError EventType = 5
	EventTypeListenOpen      EventType = 6
	EventTypeListenClose     EventType = 7
	EventTypeFileOpen        EventType = 8
	EventTypeTCPRetransmit   EventType = 9
	EventTypeL7Request       EventType = 10

	EventReasonNone    EventReason = 0
	EventReasonOOMKill EventReason = 1
)
View Source
const (
	IPProtoTCP uint8 = 6
)
View Source
const MaxPayloadSize = 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection added in v1.21.0

type Connection struct {
	Timestamp     uint64
	BytesSent     uint64
	BytesReceived uint64
}

type ConnectionId added in v1.21.0

type ConnectionId struct {
	FD  uint64
	PID uint32
	// contains filtered or unexported fields
}

type Event

type Event struct {
	Type          EventType
	Reason        EventReason
	Pid           uint32
	SrcAddr       netaddr.IPPort
	DstAddr       netaddr.IPPort
	ActualDstAddr netaddr.IPPort
	Fd            uint64
	Timestamp     uint64
	Duration      time.Duration
	L7Request     *l7.RequestData
	TrafficStats  *TrafficStats
	Mnt           uint64
	Log           bool
}

type EventReason

type EventReason uint32

func (EventReason) String

func (t EventReason) String() string

type EventType

type EventType uint32

func (EventType) String

func (t EventType) String() string

type NodejsStats added in v1.26.0

type NodejsStats struct {
	EventLoopBlockedTime time.Duration
}

type PythonStats added in v1.26.0

type PythonStats struct {
	ThreadLockWaitTime time.Duration
}

type Tracer

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

func NewTracer

func NewTracer(hostNetNs, selfNetNs netns.NsHandle, disableL7Tracing bool) *Tracer

func (*Tracer) ActiveConnectionsIterator added in v1.21.0

func (t *Tracer) ActiveConnectionsIterator() *ebpf.MapIterator

func (*Tracer) AttachGoTlsUprobes added in v1.9.0

func (t *Tracer) AttachGoTlsUprobes(pid uint32) ([]link.Link, bool)

func (*Tracer) AttachNodejsProbes added in v1.26.0

func (t *Tracer) AttachNodejsProbes(pid uint32, exe string) []link.Link

func (*Tracer) AttachOpenSslUprobes added in v1.10.0

func (t *Tracer) AttachOpenSslUprobes(pid uint32) []link.Link

func (*Tracer) AttachPythonThreadLockProbes added in v1.20.4

func (t *Tracer) AttachPythonThreadLockProbes(pid uint32) []link.Link

func (*Tracer) Close

func (t *Tracer) Close()

func (*Tracer) NodejsStatsIterator added in v1.26.0

func (t *Tracer) NodejsStatsIterator() *ebpf.MapIterator

func (*Tracer) PythonStatsIterator added in v1.26.0

func (t *Tracer) PythonStatsIterator() *ebpf.MapIterator

func (*Tracer) Run added in v1.9.0

func (t *Tracer) Run(events chan<- Event) error

type TrafficStats added in v1.21.0

type TrafficStats struct {
	BytesSent     uint64
	BytesReceived uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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