elfparser

package
v0.0.0-...-3b46a80 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapNameFromBPFPinPath

func GetMapNameFromBPFPinPath(pinPath string) (string, string)

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 IsMapGlobal(pinPath string) bool

func LoadBpfFile

func LoadBpfFile(path, customizedPinPath string) (map[string]BpfData, map[string]ebpf_maps.BpfMap, error)

func RecoverAllBpfProgramsAndMaps

func RecoverAllBpfProgramsAndMaps() (map[string]BpfData, error)

func RecoverGlobalMaps

func RecoverGlobalMaps() (map[string]ebpf_maps.BpfMap, error)

Types

type BpfData

type BpfData struct {
	Program ebpf_progs.BpfProgram       // Return the program
	Maps    map[string]ebpf_maps.BpfMap // List of associated maps
}

Jump to

Keyboard shortcuts

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