Documentation ¶
Index ¶
- Variables
- func GetProcessKprobe(event *MsgGenericKprobeUnix) *tetragon.ProcessKprobe
- func GetProcessLoader(msg *MsgProcessLoaderUnix) *tetragon.ProcessLoader
- func GetProcessLsm(event *MsgGenericLsmUnix) *tetragon.ProcessLsm
- func GetProcessUprobe(event *MsgGenericUprobeUnix) *tetragon.ProcessUprobe
- func InitMetrics()
- func LoaderMetricInc(ty LoaderType)
- func RegisterMetrics(group metrics.Group)
- 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 MsgGenericLsmUnix
- func (msg *MsgGenericLsmUnix) Cast(o interface{}) notify.Message
- func (msg *MsgGenericLsmUnix) HandleMessage() *tetragon.GetEventsResponse
- func (msg *MsgGenericLsmUnix) Notify() bool
- func (msg *MsgGenericLsmUnix) PolicyInfo() tracingpolicy.PolicyInfo
- func (msg *MsgGenericLsmUnix) Retry(internal *process.ProcessInternal, ev notify.Event) error
- func (msg *MsgGenericLsmUnix) 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 MsgImaHash
- 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 MsgProcessThrottleUnix
- func (msg *MsgProcessThrottleUnix) Cast(o interface{}) notify.Message
- func (msg *MsgProcessThrottleUnix) HandleMessage() *tetragon.GetEventsResponse
- func (msg *MsgProcessThrottleUnix) Notify() bool
- func (msg *MsgProcessThrottleUnix) Retry(_ *process.ProcessInternal, _ notify.Event) error
- func (msg *MsgProcessThrottleUnix) RetryInternal(_ notify.Event, _ 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 ¶
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
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 (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 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 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 (msg *MsgProcessThrottleUnix) Retry(_ *process.ProcessInternal, _ notify.Event) error
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)
Click to show internal directories.
Click to hide internal directories.