tracing

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 23 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 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 {
	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 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 {
	Msg        *tracingapi.MsgGenericTracepoint
	Subsys     string
	Event      string
	Args       []tracingapi.MsgGenericTracepointArg
	PolicyName string
	Message    string
	Tags       []string
}

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 (*MsgGenericTracepointUnix) Retry

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 {
	Msg        *tracingapi.MsgGenericKprobe
	Path       string
	Symbol     string
	PolicyName string
	Message    string
	Args       []tracingapi.MsgGenericKprobeArg
	Tags       []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 {
	Msg     *tracingapi.MsgLoader
	Path    string
	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)

Jump to

Keyboard shortcuts

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