Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright Authors of Tetragon
Index ¶
Constants ¶
View Source
const ( MSG_OP_UNDEF = 0 // MSG_OP_EXECVE event indicates a process was created. The 'PID' // and 'Common' fields will be populated. This event is positioned // after exec() calls have been validated so failed syscalls will // not be reported. To generate events provide the '-e' option to // tetragon, without the option the hook only populates the data // store for later use by above events. MSG_OP_EXECVE = 5 MSG_OP_EXIT = 7 MSG_OP_GENERIC_KPROBE = 13 MSG_OP_GENERIC_TRACEPOINT = 14 MSG_OP_GENERIC_UPROBE = 15 // MSG_OP_CLONE notifies user-space that a clone() event has occurred. MSG_OP_CLONE = 23 MSG_OP_DATA = 24 MSG_OP_CGROUP = 25 MSG_OP_LOADER = 26 // just for testing MSG_OP_TEST = 254 )
View Source
const ( MsgOpUndef = iota MsgOpExecve = 5 MsgOpExit = 7 MsgOpKfreeSkb = 11 MsgOpGenericKprobe = 13 MsgOpGeneric_Tracepoint = 14 MsgOpTest = 254 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgroupOpCode ¶ added in v0.8.4
type CgroupOpCode int
const ( MSG_OP_CGROUP_UNDEF CgroupOpCode = iota MSG_OP_CGROUP_MKDIR CgroupOpCode = 1 MSG_OP_CGROUP_RMDIR CgroupOpCode = 2 MSG_OP_CGROUP_RELEASE CgroupOpCode = 3 MSG_OP_CGROUP_ATTACH_TASK CgroupOpCode = 10 )
Cgroup Operations that are sent from BPF side. Right now they are used only for logging and debugging, except for for CGROUP_ATTACH_TASK which will be used to detect cgroup configuration.
func (CgroupOpCode) String ¶ added in v0.8.4
func (op CgroupOpCode) String() string
type CgroupState ¶ added in v0.8.4
type CgroupState int
const ( CGROUP_UNTRACKED CgroupState = iota // Cgroup was created but we did not track it CGROUP_NEW CgroupState = 1 // Cgroup was just created CGROUP_RUNNING CgroupState = 2 // Cgroup from new => running (fork,exec task inside) CGROUP_RUNNING_PROC CgroupState = 3 // Cgroups that were generated from pids of procfs )
Different cgroup states.
func (CgroupState) String ¶ added in v0.8.4
func (st CgroupState) String() string
Click to show internal directories.
Click to hide internal directories.