tracing

package
v1.2.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CharBufErrorENOMEM      = -1
	CharBufErrorPageFault   = -2
	CharBufErrorTooLarge    = -3
	CharBufSavedForRetprobe = -4
)
View Source
const (
	ListTypeInvalid           = -1
	ListTypeNone              = 0
	ListTypeSyscalls          = 1
	ListTypeGeneratedSyscalls = 2
	ListTypeGeneratedFtrace   = 3

	Is32Bit = 0x80000000
)
View Source
const (
	// Max length of message field of a Tracing Policy
	TpMaxMessageLen = 256
	// Minimum length of message field ot a Tracing Policy
	// so it makes sense and we ensure it is not single
	// quoted character, we want double quoted string
	TpMinMessageLen = 2
)
View Source
const (
	// Max tags of a Tracing Policy
	TpMaxTags   = 16
	TpMinTagLen = 2
	TpMaxTagLen = 128
)

Variables

View Source
var (
	ErrMsgSyntaxLong   = errors.New("message field is too long")
	ErrMsgSyntaxShort  = errors.New("message field is too short")
	ErrMsgSyntaxEmpty  = errors.New("message field is empty")
	ErrMsgSyntaxEscape = errors.New("message field escape failed")
)
View Source
var (
	ErrTagsSyntaxLong = errors.New("tags field: too many tags")
	ErrTagSyntaxShort = errors.New("too short")
)
View Source
var (
	MaxFilterIntArgs = 8
)

Functions

func GetLoaderSensor added in v0.9.0

func GetLoaderSensor() *sensors.Sensor

func LoadGenericTracepointSensor

func LoadGenericTracepointSensor(bpfDir string, load *program.Program, verbose int) error

func ReadArgBytes

func ReadArgBytes(r *bytes.Reader, index int, hasMaxData bool) (*api.MsgGenericKprobeArgBytes, error)

func UprobeTestFunc added in v0.9.0

func UprobeTestFunc()

Types

type EnforcerSpecBuilder added in v1.1.0

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

func NewEnforcerSpecBuilder added in v1.1.0

func NewEnforcerSpecBuilder(name string) *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) Build added in v1.1.0

func (*EnforcerSpecBuilder) MustBuild added in v1.1.0

func (ksb *EnforcerSpecBuilder) MustBuild() *v1alpha1.TracingPolicy

func (*EnforcerSpecBuilder) MustYAML added in v1.1.0

func (ksb *EnforcerSpecBuilder) MustYAML() string

func (*EnforcerSpecBuilder) WithDefaultOverride added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithDefaultOverride() *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithFmodRet added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithFmodRet() *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithKill added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithKill(sig uint32) *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithMatchBinaries added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithMatchBinaries(bins ...string) *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithMultiKprobe added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithMultiKprobe() *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithOverrideReturn added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithOverrideReturn() *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithOverrideValue added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithOverrideValue(ret int32) *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithSyscallList added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithSyscallList(calls ...string) *EnforcerSpecBuilder

func (*EnforcerSpecBuilder) WithoutMultiKprobe added in v1.1.0

func (ksb *EnforcerSpecBuilder) WithoutMultiKprobe() *EnforcerSpecBuilder

type OverrideMethod added in v1.1.0

type OverrideMethod int
const (
	OverrideMethodDefault OverrideMethod = iota
	OverrideMethodReturn
	OverrideMethodFmodRet
	OverrideMethodInvalid
)

Jump to

Keyboard shortcuts

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