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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	LoaderStats = promauto.NewCounterVec(prometheus.CounterOpts{
		Name:        consts.MetricNamePrefix + "process_loader_stats",
		Help:        "Process Loader event statistics. For internal use only.",
		ConstLabels: nil,
	}, []string{"count"})
)
View Source
var LoaderTypeStrings = map[LoaderType]string{
	LoaderReceived:      "LoaderReceived",
	LoaderResolvedImm:   "LoaderResolvedImm",
	LoaderResolvedRetry: "LoaderResolvedRetry",
}

Functions

func GetProcessKprobe

func GetProcessKprobe(event *MsgGenericKprobeUnix) *tetragon.ProcessKprobe

func GetProcessLoader

func GetProcessLoader(msg *MsgProcessLoaderUnix) *tetragon.ProcessLoader

func LoaderMetricInc

func LoaderMetricInc(ty LoaderType)

Increment a Build Id metric for a retrieval type

Types

type LoaderType

type LoaderType int
const (
	LoaderReceived LoaderType = iota
	LoaderResolvedImm
	LoaderResolvedRetry
)

type MsgGenericKprobeUnix

type MsgGenericKprobeUnix struct {
	Common       processapi.MsgCommon
	ProcessKey   processapi.MsgExecveKey
	Namespaces   processapi.MsgNamespaces
	Capabilities processapi.MsgCapabilities
	Id           uint64
	Action       uint64
	FuncName     string
	Args         []tracingapi.MsgGenericKprobeArg
}

func (*MsgGenericKprobeUnix) Cast

func (msg *MsgGenericKprobeUnix) Cast(o interface{}) notify.Message

func (*MsgGenericKprobeUnix) HandleMessage

func (msg *MsgGenericKprobeUnix) HandleMessage() *tetragon.GetEventsResponse

func (*MsgGenericKprobeUnix) Notify

func (msg *MsgGenericKprobeUnix) Notify() bool

func (*MsgGenericKprobeUnix) Retry

func (msg *MsgGenericKprobeUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error

func (*MsgGenericKprobeUnix) RetryInternal

func (msg *MsgGenericKprobeUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)

type MsgGenericTracepointUnix

type MsgGenericTracepointUnix struct {
	Common     processapi.MsgCommon
	ProcessKey processapi.MsgExecveKey
	Id         int64
	Subsys     string
	Event      string
	Args       []tracingapi.MsgGenericTracepointArg
}

func (*MsgGenericTracepointUnix) Cast

func (msg *MsgGenericTracepointUnix) Cast(o interface{}) notify.Message

func (*MsgGenericTracepointUnix) HandleMessage

func (msg *MsgGenericTracepointUnix) HandleMessage() *tetragon.GetEventsResponse

func (*MsgGenericTracepointUnix) Notify

func (msg *MsgGenericTracepointUnix) Notify() bool

func (*MsgGenericTracepointUnix) Retry

func (*MsgGenericTracepointUnix) RetryInternal

func (msg *MsgGenericTracepointUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)

type MsgProcessLoaderUnix

type MsgProcessLoaderUnix struct {
	ProcessKey processapi.MsgExecveKey
	Path       string
	Ktime      uint64
	Buildid    []byte
}

func (*MsgProcessLoaderUnix) Cast

func (msg *MsgProcessLoaderUnix) Cast(o interface{}) notify.Message

func (*MsgProcessLoaderUnix) HandleMessage

func (msg *MsgProcessLoaderUnix) HandleMessage() *tetragon.GetEventsResponse

func (*MsgProcessLoaderUnix) Notify

func (msg *MsgProcessLoaderUnix) Notify() bool

func (*MsgProcessLoaderUnix) Retry

func (msg *MsgProcessLoaderUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error

func (*MsgProcessLoaderUnix) RetryInternal

func (msg *MsgProcessLoaderUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)

type ProcessLoaderNotify

type ProcessLoaderNotify struct {
	tetragon.ProcessLoader
}

func (*ProcessLoaderNotify) GetParent

func (event *ProcessLoaderNotify) GetParent() *tetragon.Process

func (*ProcessLoaderNotify) SetParent

func (event *ProcessLoaderNotify) SetParent(*tetragon.Process)

Jump to

Keyboard shortcuts

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