ebpf

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProcContainerCgroupPath = "/proc/1/cgroup"
	ProcContainerSchedPath  = "/proc/1/sched"
)
View Source
const (
	SysKernelBtfVmlinux = "/sys/kernel/btf/vmlinux"
	ConfigDebugInfoBtf  = "CONFIG_DEBUG_INFO_BTF"
)

Variables

This section is empty.

Functions

func GetSystemConfig

func GetSystemConfig() (map[string]string, error)

func IsContainer

func IsContainer() (bool, error)

IsContainer returns true if the process is running in a container.

func IsEnableBPF

func IsEnableBPF() (bool, error)

IsEnableBPF check BPF CONFIG

func IsEnableBTF

func IsEnableBTF() (bool, error)

Types

type UnameInfo

type UnameInfo struct {
	SysName    string
	Nodename   string
	Release    string
	Version    string
	Machine    string
	Domainname string
}

Jump to

Keyboard shortcuts

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