Documentation
¶
Index ¶
- func AdvanceSelectorLength(k *KernelSelectorState) uint32
- func ArgSelectorValue(v string) ([]byte, uint32)
- func ArgTypeToString(t uint32) string
- func GetSelectorBuffer(k *KernelSelectorState) [4096]byte
- func HasOverride(spec *v1alpha1.KProbeSpec) bool
- func InitKernelSelectors(selectors []v1alpha1.KProbeSelector, args []v1alpha1.KProbeArg) ([4096]byte, error)
- func MatchActionSigKill(spec *v1alpha1.KProbeSpec) bool
- func WriteSelectorByteArray(k *KernelSelectorState, b []byte, size uint32)
- func WriteSelectorInt32(k *KernelSelectorState, v int32)
- func WriteSelectorInt64(k *KernelSelectorState, v int64)
- func WriteSelectorLength(k *KernelSelectorState, loff uint32)
- func WriteSelectorUint32(k *KernelSelectorState, v uint32)
- func WriteSelectorUint64(k *KernelSelectorState, v uint64)
- type KernelSelectorState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvanceSelectorLength ¶
func AdvanceSelectorLength(k *KernelSelectorState) uint32
func ArgSelectorValue ¶
func ArgTypeToString ¶
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
}
Click to show internal directories.
Click to hide internal directories.