ebpf

package
v0.0.0-...-f3338f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(inCtx context.Context, dns DNS, procNameResolver ProcessNameResolver) (context.CancelFunc, error)

Start starts the eBPF program by loading the BPF objects and attaching tracing to the specified programs. It returns an error if it fails to load the BPF objects or attach tracing.

Types

type DNS

type DNS interface {
	ReverseResolve(addrs []netip.Addr) (map[netip.Addr]string, map[string]string, error)
}

type ProcessNameResolver

type ProcessNameResolver interface {
	NameById(pid int32) (name string, isZombie bool, err error)
}

Jump to

Keyboard shortcuts

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