Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright Authors of Tetragon
Index ¶
- Variables
- func GetProcessKprobe(event *MsgGenericKprobeUnix) *tetragon.ProcessKprobe
- func GetProcessLoader(msg *MsgProcessLoaderUnix) *tetragon.ProcessLoader
- func LoaderMetricInc(ty LoaderType)
- type LoaderType
- type MsgGenericKprobeUnix
- func (msg *MsgGenericKprobeUnix) Cast(o interface{}) notify.Message
- func (msg *MsgGenericKprobeUnix) HandleMessage() *tetragon.GetEventsResponse
- func (msg *MsgGenericKprobeUnix) Notify() bool
- func (msg *MsgGenericKprobeUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
- func (msg *MsgGenericKprobeUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)
- type MsgGenericTracepointUnix
- func (msg *MsgGenericTracepointUnix) Cast(o interface{}) notify.Message
- func (msg *MsgGenericTracepointUnix) HandleMessage() *tetragon.GetEventsResponse
- func (msg *MsgGenericTracepointUnix) Notify() bool
- func (msg *MsgGenericTracepointUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
- func (msg *MsgGenericTracepointUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)
- type MsgProcessLoaderUnix
- func (msg *MsgProcessLoaderUnix) Cast(o interface{}) notify.Message
- func (msg *MsgProcessLoaderUnix) HandleMessage() *tetragon.GetEventsResponse
- func (msg *MsgProcessLoaderUnix) Notify() bool
- func (msg *MsgProcessLoaderUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
- func (msg *MsgProcessLoaderUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)
- type ProcessLoaderNotify
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 (msg *MsgGenericTracepointUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
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)
Click to show internal directories.
Click to hide internal directories.