tracer

package
v0.2.213 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MountnsMap *ebpf.Map
}

type GadgetDesc

type GadgetDesc struct{}

func (*GadgetDesc) Category

func (g *GadgetDesc) Category() string

func (*GadgetDesc) Description

func (g *GadgetDesc) Description() string

func (*GadgetDesc) EventPrototype

func (g *GadgetDesc) EventPrototype() any

func (*GadgetDesc) Name

func (g *GadgetDesc) Name() string

func (*GadgetDesc) NewInstance

func (g *GadgetDesc) NewInstance() (gadgets.Gadget, error)

func (*GadgetDesc) ParamDescs

func (g *GadgetDesc) ParamDescs() params.ParamDescs

func (*GadgetDesc) Parser

func (g *GadgetDesc) Parser() parser.Parser

func (*GadgetDesc) Type

func (g *GadgetDesc) Type() gadgets.GadgetType

type Tracer

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

func NewTracer

func NewTracer(config *Config, enricher gadgets.DataEnricherByMntNs,
	eventCallback func(*types.Event),
) (*Tracer, error)

func (*Tracer) Run

func (t *Tracer) Run(gadgetCtx gadgets.GadgetContext) error

func (*Tracer) SetEventHandler

func (t *Tracer) SetEventHandler(handler any)

func (*Tracer) SetMountNsMap

func (t *Tracer) SetMountNsMap(mountnsMap *ebpf.Map)

func (*Tracer) Stop

func (t *Tracer) Stop()

Stop stops the tracer TODO: Remove after refactoring

Jump to

Keyboard shortcuts

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