ebpf

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 16 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