tracing

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoaderStats = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "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 GetProcessLsm added in v1.3.2

func GetProcessLsm(event *MsgGenericLsmUnix) *tetragon.ProcessLsm

func GetProcessUprobe added in v1.3.2

func GetProcessUprobe(event *MsgGenericUprobeUnix) *tetragon.ProcessUprobe

func InitMetrics added in v1.3.2

func InitMetrics()

func LoaderMetricInc

func LoaderMetricInc(ty LoaderType)

Increment a Build Id metric for a retrieval type

func RegisterMetrics added in v1.3.2

func RegisterMetrics(group metrics.Group)

Types

type LoaderType

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

type MsgGenericKprobeUnix

type MsgGenericKprobeUnix struct {
	Msg              *tracingapi.MsgGenericKprobe
	ReturnAction     uint64
	FuncName         string
	Args             []tracingapi.MsgGenericKprobeArg
	PolicyName       string
	Message          string
	KernelStackTrace [unix.PERF_MAX_STACK_DEPTH]uint64
	UserStackTrace   [unix.PERF_MAX_STACK_DEPTH]uint64
	Tags             []string
}

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) PolicyInfo added in v1.3.2

func (msg *MsgGenericKprobeUnix) PolicyInfo() tracingpolicy.PolicyInfo

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 MsgGenericLsmUnix added in v1.3.2

type MsgGenericLsmUnix struct {
	Msg        *tracingapi.MsgGenericKprobe
	Hook       string
	Args       []tracingapi.MsgGenericKprobeArg
	PolicyName string
	Message    string
	Tags       []string
	ImaHash    MsgImaHash
}

func (*MsgGenericLsmUnix) Cast added in v1.3.2

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

func (*MsgGenericLsmUnix) HandleMessage added in v1.3.2

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

func (*MsgGenericLsmUnix) Notify added in v1.3.2

func (msg *MsgGenericLsmUnix) Notify() bool

func (*MsgGenericLsmUnix) PolicyInfo added in v1.3.2

func (msg *MsgGenericLsmUnix) PolicyInfo() tracingpolicy.PolicyInfo

func (*MsgGenericLsmUnix) Retry added in v1.3.2

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

func (*MsgGenericLsmUnix) RetryInternal added in v1.3.2

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

type MsgGenericTracepointUnix

type MsgGenericTracepointUnix struct {
	Msg        *tracingapi.MsgGenericTracepoint
	Subsys     string
	Event      string
	Args       []tracingapi.MsgGenericTracepointArg
	PolicyName string
	Message    string
	Tags       []string
}

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) PolicyInfo added in v1.3.2

func (*MsgGenericTracepointUnix) Retry

func (*MsgGenericTracepointUnix) RetryInternal

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

type MsgGenericUprobeUnix added in v1.3.2

type MsgGenericUprobeUnix struct {
	Msg        *tracingapi.MsgGenericKprobe
	Path       string
	Symbol     string
	PolicyName string
	Message    string
	Args       []tracingapi.MsgGenericKprobeArg
	Tags       []string
}

func (*MsgGenericUprobeUnix) Cast added in v1.3.2

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

func (*MsgGenericUprobeUnix) HandleMessage added in v1.3.2

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

func (*MsgGenericUprobeUnix) Notify added in v1.3.2

func (msg *MsgGenericUprobeUnix) Notify() bool

func (*MsgGenericUprobeUnix) PolicyInfo added in v1.3.2

func (msg *MsgGenericUprobeUnix) PolicyInfo() tracingpolicy.PolicyInfo

func (*MsgGenericUprobeUnix) Retry added in v1.3.2

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

func (*MsgGenericUprobeUnix) RetryInternal added in v1.3.2

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

type MsgImaHash added in v1.3.2

type MsgImaHash struct {
	Algo int32     `align:"algo"`
	Hash [64]uint8 `align:"hash"`
}

type MsgProcessLoaderUnix

type MsgProcessLoaderUnix struct {
	Msg     *tracingapi.MsgLoader
	Path    string
	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 MsgProcessThrottleUnix added in v1.3.2

type MsgProcessThrottleUnix struct {
	Type   tetragon.ThrottleType
	Cgroup string
	Ktime  uint64
}

func (*MsgProcessThrottleUnix) Cast added in v1.3.2

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

func (*MsgProcessThrottleUnix) HandleMessage added in v1.3.2

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

func (*MsgProcessThrottleUnix) Notify added in v1.3.2

func (msg *MsgProcessThrottleUnix) Notify() bool

func (*MsgProcessThrottleUnix) Retry added in v1.3.2

func (*MsgProcessThrottleUnix) RetryInternal added in v1.3.2

func (msg *MsgProcessThrottleUnix) RetryInternal(_ notify.Event, _ 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