tracer

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 44 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 {
	ProgContent []byte
	Metadata    *types.GadgetMetadata
	MountnsMap  *ebpf.Map

	// constants to replace in the ebpf program
	Consts map[string]interface{}
}

type GadgetDesc

type GadgetDesc struct{}

func (*GadgetDesc) Category

func (g *GadgetDesc) Category() string

func (*GadgetDesc) CustomParser

func (g *GadgetDesc) CustomParser(info *types.GadgetInfo) (parser.Parser, error)

func (*GadgetDesc) Description

func (g *GadgetDesc) Description() string

func (*GadgetDesc) EventPrototype

func (g *GadgetDesc) EventPrototype() any

func (*GadgetDesc) Experimental added in v0.23.0

func (g *GadgetDesc) Experimental() bool

func (*GadgetDesc) GetGadgetInfo added in v0.22.0

func (g *GadgetDesc) GetGadgetInfo(params *params.Params, args []string) (*types.GadgetInfo, error)

func (*GadgetDesc) JSONConverter

func (g *GadgetDesc) JSONConverter(info *types.GadgetInfo, printer types.Printer) func(ev any)

func (*GadgetDesc) JSONPrettyConverter

func (g *GadgetDesc) JSONPrettyConverter(info *types.GadgetInfo, printer types.Printer) func(ev 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

func (*GadgetDesc) YAMLConverter

func (g *GadgetDesc) YAMLConverter(info *types.GadgetInfo, printer types.Printer) func(ev any)

type Tracer

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

func (*Tracer) AttachContainer added in v0.21.0

func (t *Tracer) AttachContainer(container *containercollection.Container) error

func (*Tracer) Close

func (t *Tracer) Close()

func (*Tracer) DetachContainer added in v0.21.0

func (t *Tracer) DetachContainer(container *containercollection.Container) error

func (*Tracer) Init

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

func (*Tracer) Run

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

func (*Tracer) SetEventHandler

func (t *Tracer) SetEventHandler(handler any)

func (*Tracer) SetEventHandlerArray added in v0.22.0

func (t *Tracer) SetEventHandlerArray(handler any)

func (*Tracer) SetMountNsMap

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

func (*Tracer) SetSocketEnricherMap added in v0.25.0

func (t *Tracer) SetSocketEnricherMap(m *ebpf.Map)

Jump to

Keyboard shortcuts

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