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 GetProcessUprobe(event *MsgGenericUprobeUnix) *tetragon.ProcessUprobe
- func InitMetrics(registry *prometheus.Registry)
- 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) PolicyInfo() tracingpolicy.PolicyInfo
- 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) PolicyInfo() tracingpolicy.PolicyInfo
- func (msg *MsgGenericTracepointUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
- func (msg *MsgGenericTracepointUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)
- type MsgGenericUprobeUnix
- func (msg *MsgGenericUprobeUnix) Cast(o interface{}) notify.Message
- func (msg *MsgGenericUprobeUnix) HandleMessage() *tetragon.GetEventsResponse
- func (msg *MsgGenericUprobeUnix) Notify() bool
- func (msg *MsgGenericUprobeUnix) PolicyInfo() tracingpolicy.PolicyInfo
- func (msg *MsgGenericUprobeUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
- func (msg *MsgGenericUprobeUnix) 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 = 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 ¶ added in v0.9.0
func GetProcessLoader(msg *MsgProcessLoaderUnix) *tetragon.ProcessLoader
func GetProcessUprobe ¶ added in v0.9.0
func GetProcessUprobe(event *MsgGenericUprobeUnix) *tetragon.ProcessUprobe
func InitMetrics ¶ added in v0.11.0
func InitMetrics(registry *prometheus.Registry)
func LoaderMetricInc ¶ added in v0.9.0
func LoaderMetricInc(ty LoaderType)
Increment a Build Id metric for a retrieval type
Types ¶
type LoaderType ¶ added in v0.9.0
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 Tid uint32 FuncName string Args []tracingapi.MsgGenericKprobeArg PolicyName string StackTrace [unix.PERF_MAX_STACK_DEPTH]uint64 }
func (*MsgGenericKprobeUnix) Cast ¶ added in v0.8.3
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 v0.10.0
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 MsgGenericTracepointUnix ¶
type MsgGenericTracepointUnix struct { Common processapi.MsgCommon ProcessKey processapi.MsgExecveKey Id int64 Tid uint32 Subsys string Event string Args []tracingapi.MsgGenericTracepointArg PolicyName string Action uint64 }
func (*MsgGenericTracepointUnix) Cast ¶ added in v0.8.3
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 v0.10.0
func (msg *MsgGenericTracepointUnix) PolicyInfo() tracingpolicy.PolicyInfo
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 MsgGenericUprobeUnix ¶ added in v0.9.0
type MsgGenericUprobeUnix struct { Common processapi.MsgCommon ProcessKey processapi.MsgExecveKey Tid uint32 Path string Symbol string PolicyName string }
func (*MsgGenericUprobeUnix) Cast ¶ added in v0.9.0
func (msg *MsgGenericUprobeUnix) Cast(o interface{}) notify.Message
func (*MsgGenericUprobeUnix) HandleMessage ¶ added in v0.9.0
func (msg *MsgGenericUprobeUnix) HandleMessage() *tetragon.GetEventsResponse
func (*MsgGenericUprobeUnix) Notify ¶ added in v0.9.0
func (msg *MsgGenericUprobeUnix) Notify() bool
func (*MsgGenericUprobeUnix) PolicyInfo ¶ added in v0.10.0
func (msg *MsgGenericUprobeUnix) PolicyInfo() tracingpolicy.PolicyInfo
func (*MsgGenericUprobeUnix) Retry ¶ added in v0.9.0
func (msg *MsgGenericUprobeUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
func (*MsgGenericUprobeUnix) RetryInternal ¶ added in v0.9.0
func (msg *MsgGenericUprobeUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)
type MsgProcessLoaderUnix ¶ added in v0.9.0
type MsgProcessLoaderUnix struct { ProcessKey processapi.MsgExecveKey Path string Ktime uint64 Buildid []byte }
func (*MsgProcessLoaderUnix) Cast ¶ added in v0.9.0
func (msg *MsgProcessLoaderUnix) Cast(o interface{}) notify.Message
func (*MsgProcessLoaderUnix) HandleMessage ¶ added in v0.9.0
func (msg *MsgProcessLoaderUnix) HandleMessage() *tetragon.GetEventsResponse
func (*MsgProcessLoaderUnix) Notify ¶ added in v0.9.0
func (msg *MsgProcessLoaderUnix) Notify() bool
func (*MsgProcessLoaderUnix) Retry ¶ added in v0.9.0
func (msg *MsgProcessLoaderUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
func (*MsgProcessLoaderUnix) RetryInternal ¶ added in v0.9.0
func (msg *MsgProcessLoaderUnix) RetryInternal(ev notify.Event, timestamp uint64) (*process.ProcessInternal, error)
type ProcessLoaderNotify ¶ added in v0.9.0
type ProcessLoaderNotify struct {
tetragon.ProcessLoader
}
func (*ProcessLoaderNotify) GetParent ¶ added in v0.9.0
func (event *ProcessLoaderNotify) GetParent() *tetragon.Process
func (*ProcessLoaderNotify) SetParent ¶ added in v0.9.0
func (event *ProcessLoaderNotify) SetParent(*tetragon.Process)
Click to show internal directories.
Click to hide internal directories.