Documentation
¶
Index ¶
- func DetectConfig(conf Config) bool
- func FixKernelVersion(version int) int
- func GetKernelVersion(kernelVersion, procfs string) (int, string, error)
- func IsKernelVersionLessThan(version string) bool
- func KernelStringToNumeric(ver string) int64
- func LogConfigs() string
- func MinKernelVersion(kernel string) bool
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectConfig ¶ added in v1.6.0
DetectConfig checks if a kernel config option is enabled It first tries /proc/config.gz, then looks for config file in /boot for the current kernel
func FixKernelVersion ¶
func IsKernelVersionLessThan ¶
func KernelStringToNumeric ¶
func LogConfigs ¶ added in v1.6.0
func LogConfigs() string
func MinKernelVersion ¶
Types ¶
type Config ¶ added in v1.6.0
type Config string
const ( CONFIG_AUDIT Config = "CONFIG_AUDIT" CONFIG_AUDITSYSCALL Config = "CONFIG_AUDITSYSCALL" CONFIG_BPF Config = "CONFIG_BPF" CONFIG_BPF_EVENTS Config = "CONFIG_BPF_EVENTS" CONFIG_BPF_JIT Config = "CONFIG_BPF_JIT" CONFIG_BPF_JIT_DEFAULT_ON Config = "CONFIG_BPF_JIT_DEFAULT_ON" CONFIG_BPF_KPROBE_OVERRIDE Config = "CONFIG_BPF_KPROBE_OVERRIDE" CONFIG_BPF_SYSCALL Config = "CONFIG_BPF_SYSCALL" CONFIG_CGROUPS Config = "CONFIG_CGROUPS" CONFIG_DEBUG_INFO_BTF Config = "CONFIG_DEBUG_INFO_BTF" CONFIG_DEBUG_INFO_BTF_MODULES Config = "CONFIG_DEBUG_INFO_BTF_MODULES" CONFIG_FTRACE_SYSCALLS Config = "CONFIG_FTRACE_SYSCALLS" CONFIG_HAVE_BPF_JIT Config = "CONFIG_HAVE_BPF_JIT" CONFIG_HAVE_EBPF_JIT Config = "CONFIG_HAVE_EBPF_JIT" CONFIG_SECURITY Config = "CONFIG_SECURITY" )
Click to show internal directories.
Click to hide internal directories.