Documentation
¶
Index ¶
- Constants
- Variables
- func GenericTypeFromBTF(arg btf.Type) int
- func GenericTypeFromString(arg string) int
- func GenericTypeString(ty int) string
- func GenericTypeToString(ty int) (string, error)
- func GenericUserToKernelType(arg int) int
- func GenericUserTypeFromString(arg string) int
- func GenericUserTypeToString(ty int) string
- func PathType(ty int) bool
Constants ¶
View Source
const ( GenericIntType = 1 GenericCharBuffer = 2 GenericCharIovec = 3 GenericSizeType = 4 GenericSkbType = 5 GenericStringType = 6 GenericSockType = 7 GenericCredType = 8 GenericS64Type = 10 GenericU64Type = 11 GenericS32Type = 12 GenericU32Type = 13 GenericFilenameType = 14 GenericPathType = 15 GenericFileType = 16 GenericFdType = 17 // GenericConstBuffer is a buffer type whose size is static (and known). GenericConstBuffer = 18 GenericBpfAttr = 19 GenericPerfEvent = 20 GenericBpfMap = 21 GenericUserNamespace = 22 GenericCapability = 23 GenericKiocb = 24 GenericIovIter = 25 GenericLoadModule = 26 GenericKernelModule = 27 GenericSyscall64 = 28 GenericS16Type = 29 GenericU16Type = 30 GenericS8Type = 31 GenericU8Type = 32 GenericKernelCap = 33 GenericCapInheritable = 34 GenericCapPermitted = 35 GenericCapEffective = 36 GenericLinuxBinprmType = 37 GenericDataLoc = 38 GenericNetDev = 39 GenericSockaddrType = 40 GenericSocketType = 41 GenericDentryType = 42 GenericBpfProgType = 43 GenericNopType = -1 GenericInvalidType = -2 )
View Source
const (
GenericUserBpfCmdType = 1
)
Userspace pretty printer types.
Variables ¶
View Source
var GenericUserToKernel = map[int]int{ GenericUserBpfCmdType: GenericIntType, }
View Source
var GenericUserTypeToStringTable = map[int]string{ GenericUserBpfCmdType: "bpf_cmd", GenericInvalidType: "", }
Functions ¶
func GenericTypeFromBTF ¶ added in v1.4.0
func GenericTypeFromString ¶
func GenericTypeString ¶ added in v1.5.0
func GenericTypeToString ¶ added in v1.1.0
func GenericUserToKernelType ¶ added in v1.2.1
func GenericUserTypeFromString ¶ added in v1.2.1
func GenericUserTypeToString ¶ added in v1.2.1
GenericUserTypeToString() converts the passed argument type to its string representation. Returns empty string on non valid types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.