tracingapi

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// 5 arguments + 1 return argument
	MaxArgsSupported = 6
	ReturnArgIndex   = MaxArgsSupported - 1
)
View Source
const (
	ActionPost       = 0
	ActionFollowFd   = 1
	ActionSigKill    = 2
	ActionUnfollowFd = 3
	ActionOverride   = 4
	ActionCopyFd     = 5
)
View Source
const (
	BPF_OBJ_NAME_LEN = 16
	KSYM_NAME_LEN    = 128
)
View Source
const EventConfigMaxArgs = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type EventConfig

type EventConfig struct {
	FuncId        uint32                     `align:"func_id"`
	Arg           [EventConfigMaxArgs]int32  `align:"arg0"`
	ArgM          [EventConfigMaxArgs]uint32 `align:"arg0m"`
	ArgTpCtxOff   [EventConfigMaxArgs]uint32 `align:"t_arg0_ctx_off"`
	Sigkill       uint32                     `align:"sigkill"`
	Syscall       uint32                     `align:"syscall"`
	ArgReturnCopy int32                      `align:"argreturncopy"`
	ArgReturn     int32                      `align:"argreturn"`
}

type KprobeArgs

type KprobeArgs struct {
	Args0 []byte
	Args1 []byte
	Args2 []byte
	Args3 []byte
	Args4 []byte
}

type MsgGenericKprobe

type MsgGenericKprobe struct {
	Common       processapi.MsgCommon
	ProcessKey   processapi.MsgExecveKey
	Namespaces   processapi.MsgNamespaces
	Capabilities processapi.MsgCapabilities
	Id           uint64
	ThreadId     uint64
	ActionId     uint64
}

type MsgGenericKprobeArg

type MsgGenericKprobeArg interface {
	GetIndex() uint64
	IsReturnArg() bool
}

type MsgGenericKprobeArgBpfAttr

type MsgGenericKprobeArgBpfAttr struct {
	Index    uint64
	ProgType uint32
	InsnCnt  uint32
	ProgName string
}

func (MsgGenericKprobeArgBpfAttr) GetIndex

func (m MsgGenericKprobeArgBpfAttr) GetIndex() uint64

func (MsgGenericKprobeArgBpfAttr) IsReturnArg

func (m MsgGenericKprobeArgBpfAttr) IsReturnArg() bool

type MsgGenericKprobeArgBpfMap added in v0.8.3

type MsgGenericKprobeArgBpfMap struct {
	MapType    uint32
	Index      uint64
	KeySize    uint32
	ValueSize  uint32
	MaxEntries uint32
	MapName    string
}

func (MsgGenericKprobeArgBpfMap) GetIndex added in v0.8.3

func (m MsgGenericKprobeArgBpfMap) GetIndex() uint64

func (MsgGenericKprobeArgBpfMap) IsReturnArg added in v0.8.3

func (m MsgGenericKprobeArgBpfMap) IsReturnArg() bool

type MsgGenericKprobeArgBytes

type MsgGenericKprobeArgBytes struct {
	Index    uint64
	OrigSize uint64 // if len(Value) < OrigSize, then the result was truncated
	Value    []byte
}

func (MsgGenericKprobeArgBytes) GetIndex

func (m MsgGenericKprobeArgBytes) GetIndex() uint64

func (MsgGenericKprobeArgBytes) IsReturnArg

func (m MsgGenericKprobeArgBytes) IsReturnArg() bool

type MsgGenericKprobeArgCapability added in v0.8.3

type MsgGenericKprobeArgCapability struct {
	Index uint64
	Value int32
	Pad   int32
}

func (MsgGenericKprobeArgCapability) GetIndex added in v0.8.3

func (MsgGenericKprobeArgCapability) IsReturnArg added in v0.8.3

func (m MsgGenericKprobeArgCapability) IsReturnArg() bool

type MsgGenericKprobeArgCred

type MsgGenericKprobeArgCred struct {
	Index       uint64
	Permitted   uint64
	Effective   uint64
	Inheritable uint64
}

func (MsgGenericKprobeArgCred) GetIndex

func (m MsgGenericKprobeArgCred) GetIndex() uint64

func (MsgGenericKprobeArgCred) IsReturnArg

func (m MsgGenericKprobeArgCred) IsReturnArg() bool

type MsgGenericKprobeArgFile

type MsgGenericKprobeArgFile struct {
	Index uint64
	Value string
	Flags uint32
}

func (MsgGenericKprobeArgFile) GetIndex

func (m MsgGenericKprobeArgFile) GetIndex() uint64

func (MsgGenericKprobeArgFile) IsReturnArg

func (m MsgGenericKprobeArgFile) IsReturnArg() bool

type MsgGenericKprobeArgInt

type MsgGenericKprobeArgInt struct {
	Index uint64
	Value int32
}

func (MsgGenericKprobeArgInt) GetIndex

func (m MsgGenericKprobeArgInt) GetIndex() uint64

func (MsgGenericKprobeArgInt) IsReturnArg

func (m MsgGenericKprobeArgInt) IsReturnArg() bool

type MsgGenericKprobeArgPath

type MsgGenericKprobeArgPath struct {
	Index uint64
	Value string
	Flags uint32
}

func (MsgGenericKprobeArgPath) GetIndex

func (m MsgGenericKprobeArgPath) GetIndex() uint64

func (MsgGenericKprobeArgPath) IsReturnArg

func (m MsgGenericKprobeArgPath) IsReturnArg() bool

type MsgGenericKprobeArgPerfEvent

type MsgGenericKprobeArgPerfEvent struct {
	Index       uint64
	KprobeFunc  string
	Type        uint32
	Config      uint64
	ProbeOffset uint64
}

func (MsgGenericKprobeArgPerfEvent) GetIndex

func (m MsgGenericKprobeArgPerfEvent) GetIndex() uint64

func (MsgGenericKprobeArgPerfEvent) IsReturnArg

func (m MsgGenericKprobeArgPerfEvent) IsReturnArg() bool

type MsgGenericKprobeArgSize

type MsgGenericKprobeArgSize struct {
	Index uint64
	Value uint64
}

func (MsgGenericKprobeArgSize) GetIndex

func (m MsgGenericKprobeArgSize) GetIndex() uint64

func (MsgGenericKprobeArgSize) IsReturnArg

func (m MsgGenericKprobeArgSize) IsReturnArg() bool

type MsgGenericKprobeArgSkb

type MsgGenericKprobeArgSkb struct {
	Index       uint64
	Hash        uint32
	Len         uint32
	Priority    uint32
	Mark        uint32
	Saddr       string
	Daddr       string
	Sport       uint32
	Dport       uint32
	Proto       uint32
	SecPathLen  uint32
	SecPathOLen uint32
}

func (MsgGenericKprobeArgSkb) GetIndex

func (m MsgGenericKprobeArgSkb) GetIndex() uint64

func (MsgGenericKprobeArgSkb) IsReturnArg

func (m MsgGenericKprobeArgSkb) IsReturnArg() bool

type MsgGenericKprobeArgSock

type MsgGenericKprobeArgSock struct {
	Index    uint64
	Family   uint16
	Type     uint16
	Protocol uint16
	Mark     uint32
	Priority uint32
	Saddr    string
	Daddr    string
	Sport    uint32
	Dport    uint32
}

func (MsgGenericKprobeArgSock) GetIndex

func (m MsgGenericKprobeArgSock) GetIndex() uint64

func (MsgGenericKprobeArgSock) IsReturnArg

func (m MsgGenericKprobeArgSock) IsReturnArg() bool

type MsgGenericKprobeArgString

type MsgGenericKprobeArgString struct {
	Index uint64
	Value string
}

func (MsgGenericKprobeArgString) GetIndex

func (m MsgGenericKprobeArgString) GetIndex() uint64

func (MsgGenericKprobeArgString) IsReturnArg

func (m MsgGenericKprobeArgString) IsReturnArg() bool

type MsgGenericKprobeArgUInt added in v0.8.3

type MsgGenericKprobeArgUInt struct {
	Index uint64
	Value uint32
}

func (MsgGenericKprobeArgUInt) GetIndex added in v0.8.3

func (m MsgGenericKprobeArgUInt) GetIndex() uint64

func (MsgGenericKprobeArgUInt) IsReturnArg added in v0.8.3

func (m MsgGenericKprobeArgUInt) IsReturnArg() bool

type MsgGenericKprobeArgUserNamespace added in v0.8.3

type MsgGenericKprobeArgUserNamespace struct {
	Index  uint64
	Level  int32
	Owner  uint32
	Group  uint32
	NsInum uint32
}

func (MsgGenericKprobeArgUserNamespace) GetIndex added in v0.8.3

func (MsgGenericKprobeArgUserNamespace) IsReturnArg added in v0.8.3

func (m MsgGenericKprobeArgUserNamespace) IsReturnArg() bool

type MsgGenericKprobeBpfAttr

type MsgGenericKprobeBpfAttr struct {
	ProgType uint32
	InsnCnt  uint32
	ProgName [BPF_OBJ_NAME_LEN]byte
}

type MsgGenericKprobeBpfMap added in v0.8.3

type MsgGenericKprobeBpfMap struct {
	MapType    uint32
	KeySize    uint32
	ValueSize  uint32
	MaxEntries uint32
	MapName    [BPF_OBJ_NAME_LEN]byte
}

type MsgGenericKprobeCapability added in v0.8.3

type MsgGenericKprobeCapability struct {
	Value int32
	Pad   int32
}

type MsgGenericKprobeCred

type MsgGenericKprobeCred struct {
	Permitted   uint64
	Effective   uint64
	Inheritable uint64
}

type MsgGenericKprobePerfEvent

type MsgGenericKprobePerfEvent struct {
	KprobeFunc  [KSYM_NAME_LEN]byte
	Type        uint32
	Config      uint64
	ProbeOffset uint64
}

type MsgGenericKprobeSkb

type MsgGenericKprobeSkb struct {
	Hash        uint32
	Len         uint32
	Priority    uint32
	Mark        uint32
	Saddr       uint32
	Daddr       uint32
	Sport       uint32
	Dport       uint32
	Proto       uint32
	SecPathLen  uint32
	SecPathOLen uint32
}

type MsgGenericKprobeSock

type MsgGenericKprobeSock struct {
	Family   uint16
	Type     uint16
	Protocol uint16
	Pad      uint16
	Mark     uint32
	Priority uint32
	Saddr    uint32
	Daddr    uint32
	Sport    uint16
	Dport    uint16
}

type MsgGenericKprobeUnix

type MsgGenericKprobeUnix struct {
	Common       processapi.MsgCommon
	ProcessKey   processapi.MsgExecveKey
	Namespaces   processapi.MsgNamespaces
	Capabilities processapi.MsgCapabilities
	Id           uint64
	Action       uint64
	FuncName     string
	Args         []MsgGenericKprobeArg
}

type MsgGenericKprobeUserNamespace added in v0.8.3

type MsgGenericKprobeUserNamespace struct {
	Level  int32
	Owner  uint32
	Group  uint32
	NsInum uint32
}

type MsgGenericTracepoint

type MsgGenericTracepoint struct {
	Common       processapi.MsgCommon
	ProcessKey   processapi.MsgExecveKey
	Namespaces   processapi.MsgNamespaces
	Capabilities processapi.MsgCapabilities
	Id           int64
	ThreadId     uint64
	ActionId     uint64
}

type MsgGenericTracepointArg

type MsgGenericTracepointArg interface{}

Jump to

Keyboard shortcuts

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