tracer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() []string

List all the registered tracers.

func Register

func Register(name string, initFunc InitFunc) error

Register registers an InitFunc for the tracer.

func UnloadAll

func UnloadAll()

UnloadAll unloads all the registered tracers.

Types

type InitFunc

type InitFunc func() (Tracer, error)

InitFunc initializes the tracer.

type Tracer

type Tracer interface {
	// Load creates the bpf module and starts collecting the data for the tracer.
	Load() error
	// Unload closes the bpf module and all the probes that all attached to it.
	Unload()
	// WatchEvent defines the function to watch the events for the tracer.
	WatchEvent(context.Context) (*grpc.Event, error)
	// Start starts the map for the tracer.
	Start()
	// String returns a string representation of this tracer.
	String() string
}

Tracer defines the basic capabilities of a tracer.

func Get

func Get(name string) (Tracer, error)

Get initializes and returns the registered tracer.

Directories

Path Synopsis
Package tcpdrop implements a tracer to detect CVE-2018-5390.
Package tcpdrop implements a tracer to detect CVE-2018-5390.

Jump to

Keyboard shortcuts

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