Documentation ¶
Index ¶
- func GetMapNameFromBPFPinPath(pinPath string) (string, string)
- func IncreaseRlimit() error
- func IsMapGlobal(pinPath string) bool
- func LoadBpfFile(path, customizedPinPath string) (map[string]BpfData, map[string]ebpf_maps.BpfMap, error)
- func RecoverAllBpfProgramsAndMaps() (map[string]BpfData, error)
- func RecoverGlobalMaps() (map[string]ebpf_maps.BpfMap, error)
- type BpfData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncreaseRlimit ¶
func IncreaseRlimit() error
This is not needed 5.11 kernel onwards because per-cgroup mem limits https://lore.kernel.org/bpf/20201201215900.3569844-1-guro@fb.com/
func IsMapGlobal ¶
func LoadBpfFile ¶
Types ¶
type BpfData ¶
type BpfData struct { Program ebpf_progs.BpfProgram // Return the program Maps map[string]ebpf_maps.BpfMap // List of associated maps }
Click to show internal directories.
Click to hide internal directories.