ebpftracer

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 17 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
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type      EventType
	Reason    EventReason
	Pid       uint32
	SrcAddr   netaddr.IPPort
	DstAddr   netaddr.IPPort
	Fd        uint64
	Timestamp uint64
	L7Request *L7Request
}

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 L7Protocol added in v1.2.0

type L7Protocol uint8
const (
	L7ProtocolHTTP      L7Protocol = 1
	L7ProtocolPostgres  L7Protocol = 2
	L7ProtocolRedis     L7Protocol = 3
	L7ProtocolMemcached L7Protocol = 4
	L7ProtocolMysql     L7Protocol = 5
	L7ProtocolMongo     L7Protocol = 6
)

func (L7Protocol) String added in v1.2.0

func (p L7Protocol) String() string

type L7Request added in v1.2.0

type L7Request struct {
	Protocol L7Protocol
	Status   int
	Duration time.Duration
}

type Tracer

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

func NewTracer

func NewTracer(events chan<- Event, kernelVersion string, disableL7Tracing bool) (*Tracer, error)

func (*Tracer) Close

func (t *Tracer) Close()

Jump to

Keyboard shortcuts

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