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: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SECCOMP_RET_KILL_PROCESS = 0x80000000
	SECCOMP_RET_KILL_THREAD  = 0x00000000
	SECCOMP_RET_KILL         = SECCOMP_RET_KILL_THREAD
	SECCOMP_RET_TRAP         = 0x00030000
	SECCOMP_RET_ERRNO        = 0x00050000
	SECCOMP_RET_USER_NOTIF   = 0x7fc00000
	SECCOMP_RET_TRACE        = 0x7ff00000
	SECCOMP_RET_LOG          = 0x7ffc0000
	SECCOMP_RET_ALLOW        = 0x7fff0000
	SECCOMP_RET_ACTION_FULL  = 0xffff0000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MountnsMap *ebpf.Map
}

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) 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) Type added in v0.14.0

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) Close

func (t *Tracer) Close()

Close closes the tracer TODO: Unexport this function when the refactoring is done

func (*Tracer) Run added in v0.15.0

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

func (*Tracer) SetEventHandler added in v0.14.0

func (t *Tracer) SetEventHandler(handler any)

func (*Tracer) SetMountNsMap added in v0.14.0

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

Jump to

Keyboard shortcuts

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