selectors

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvanceSelectorLength

func AdvanceSelectorLength(k *KernelSelectorState) uint32

func ArgSelectorValue

func ArgSelectorValue(v string) ([]byte, uint32)

func ArgTypeToString

func ArgTypeToString(t uint32) string

func GetSelectorBuffer

func GetSelectorBuffer(k *KernelSelectorState) [4096]byte

func HasOverride

func HasOverride(spec *v1alpha1.KProbeSpec) bool

func InitKernelSelectors

func InitKernelSelectors(selectors []v1alpha1.KProbeSelector, args []v1alpha1.KProbeArg) ([4096]byte, error)

array := [number][filter1_offset][filter2_offset][...][filtern_offset][filter1][filter2][...][filtern] filter := [length]

[matchPIDs]
[matchNamespaces]
[matchCapabilities]
[matchNamespaceChanges]
[matchCapabilityChanges]
[matchBinaries]
[matchArgs]
[matchActions]

matchPIDs := [num][PID1][PID2]...[PIDn] matchBinaries := [num][op][Index]...[Index] matchArgs := [num][ARGx][ARGy]...[ARGn] matchNamespaces := [num][NSx][NSy]...[NSn] matchNamespaceChanges := [num][NCx][NCy]...[NCn] matchCapabilities := [num][CAx][CAy]...[CAn] matchCapabilityChanges := [num][CAx][CAy]...[CAn] PIDn := [op][flags][valueInt] Argn := [index][op][valueGen] NSn := namespace[op][valueInt] NCn := [op][valueInt] CAn := [type][op][namespacecap][valueInt] valueGen := [type][len][v] valueInt := [len][v]

func MatchActionSigKill

func MatchActionSigKill(spec *v1alpha1.KProbeSpec) bool

func WriteSelectorByteArray

func WriteSelectorByteArray(k *KernelSelectorState, b []byte, size uint32)

func WriteSelectorInt32

func WriteSelectorInt32(k *KernelSelectorState, v int32)

func WriteSelectorInt64

func WriteSelectorInt64(k *KernelSelectorState, v int64)

func WriteSelectorLength

func WriteSelectorLength(k *KernelSelectorState, loff uint32)

func WriteSelectorUint32

func WriteSelectorUint32(k *KernelSelectorState, v uint32)

func WriteSelectorUint64

func WriteSelectorUint64(k *KernelSelectorState, v uint64)

Types

type KernelSelectorState

type KernelSelectorState struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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