tracing

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 41 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

func GetLoaderSensor() *sensors.Sensor

func LoadGenericTracepointSensor

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

func ReadArgBytes

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

func ReloadGenericKprobeSelectors

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

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

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