ebpf

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowTracer

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

FlowTracer reads and forwards the Flows from the Transmission Control, for a given interface.

func NewFlowTracer

func NewFlowTracer(iface string, sampling uint32) *FlowTracer

NewFlowTracer fo a given interface type

func (*FlowTracer) Register

func (m *FlowTracer) Register() error

Register and links the eBPF tracer into the system. The program should invoke Unregister before exiting.

func (*FlowTracer) Trace

func (m *FlowTracer) Trace(ctx context.Context, forwardFlows chan<- *flow.Record)

Trace and forward the read flows until the passed context is Done

func (*FlowTracer) Unregister

func (m *FlowTracer) Unregister() error

Unregister the eBPF tracer from the system.

Jump to

Keyboard shortcuts

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