tracer

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamThreads = "threads"
)

Variables

This section is empty.

Functions

func RunCollector

func RunCollector(config *Config, enricher gadgets.DataEnricherByMntNs) ([]*processcollectortypes.Event, error)

Types

type Config added in v0.12.0

type Config struct {
	MountnsMap  *ebpf.Map
	ShowThreads bool
}

type GadgetDesc added in v0.14.0

type GadgetDesc struct{}

func (*GadgetDesc) Category added in v0.14.0

func (g *GadgetDesc) Category() string

func (*GadgetDesc) Description added in v0.14.0

func (g *GadgetDesc) Description() string

func (*GadgetDesc) EventPrototype added in v0.14.0

func (g *GadgetDesc) EventPrototype() any

func (*GadgetDesc) Name added in v0.14.0

func (g *GadgetDesc) Name() string

func (*GadgetDesc) NewInstance added in v0.14.0

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

func (*GadgetDesc) OutputFormats added in v0.16.0

func (g *GadgetDesc) OutputFormats() (gadgets.OutputFormats, string)

func (*GadgetDesc) ParamDescs added in v0.14.0

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

func (*GadgetDesc) Parser added in v0.14.0

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

func (*GadgetDesc) SortByDefault added in v0.14.0

func (g *GadgetDesc) SortByDefault() []string

func (*GadgetDesc) Type added in v0.14.0

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

type Tracer added in v0.14.0

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

func (*Tracer) Run added in v0.14.0

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

func (*Tracer) SetEventHandlerArray added in v0.14.0

func (t *Tracer) SetEventHandlerArray(handler any)

func (*Tracer) SetMountNsMap added in v0.14.0

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

Jump to

Keyboard shortcuts

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