tracing

package
v0.10.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0 Copyright Authors of Tetragon

Index

Constants

View Source
const (
	CharBufErrorENOMEM      = -1
	CharBufErrorPageFault   = -2
	CharBufErrorTooLarge    = -3
	CharBufSavedForRetprobe = -4

	MaxKprobesMulti = 100 // MAX_ENTRIES_CONFIG in bpf code
)

Variables

View Source
var (
	MaxFilterIntArgs = 8
)

Functions

func GetLoaderSensor added in v0.9.0

func GetLoaderSensor() *sensors.Sensor

func LoadGenericTracepointSensor

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

func ReadArgBytes

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

func ReloadGenericKprobeSelectors added in v0.8.3

func ReloadGenericKprobeSelectors(kpSensor *sensors.Sensor, conf *v1alpha1.KProbeSpec, actionArgTable *idtable.Table) error

ReloadGenericKprobeSelectors will reload a kprobe by unlinking it, generating new selector data and updating filter_map, and then relinking the kprobe (entry).

This is intended for speeding up testing, so DO NOT USE elsewhere without checking its implementation first because limitations may exist (e.g,. the config map is not updated, the retprobe is not reloaded, userspace return filters are not updated, etc.).

func ReloadGenericTracepointSelectors added in v0.8.3

func ReloadGenericTracepointSelectors(p *program.Program, conf *v1alpha1.TracepointSpec) error

ReloadGenericTracepointSelectors will reload a tracepoint by unlinking it, generating new selector data and updating filter_map, and then relinking the tracepoint.

This is intended for speeding up testing, so DO NOT USE elsewhere without checking its implementation first because limitations may exist (e.g., the config map is not updated). TODO: pass the sensor here

func UprobeTestFunc added in v0.9.0

func UprobeTestFunc()

Types

type BinaryMapKey

type BinaryMapKey struct {
	PathName [256]byte
}

type BinaryMapValue

type BinaryMapValue struct {
	Id uint32
}

type GenericTracepointConf

type GenericTracepointConf = v1alpha1.TracepointSpec

GenericTracepointConf is the configuration for a generic tracepoint. This is a caller-defined structure that configures a tracepoint.

Jump to

Keyboard shortcuts

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