# Packages
Package binary is a fork of the upstream golang library.
# Functions
CheckOrMountFS checks or mounts the BPF filesystem and then opens/creates/deletes all maps which have previously been scheduled to be opened/created/deleted.
ConfigureResourceLimits configures the memory resource limits for the process to allow BPF syscall interactions.
ConvertKeyValue converts key and value from bytes to given Golang struct pointers.
CreateMap creates a Map of type mapType, with key size keySize, a value size of valueSize and the maximum amount of entries of maxEntries.
DeleteElement deletes the map element with the given key.
DisableMapPreAllocation disables BPF map pre-allocation as a default setting.
EnableMapPreAllocation enables BPF map pre-allocation on map types that support it.
Environment returns a list of environment variables which are needed to make BPF programs and tc aware of the actual BPFFS mount path.
GetFirstKey fetches the first key in the map.
GetMap returns the registered map with the given name or absolute path.
No description provided by the author
No description provided by the author
No description provided by the author
GetMapType determines whether the specified map type is supported by the kernel (as determined by ReadFeatureProbes()), and if the map type is not supported, returns a more primitive map type that may be used to implement the map on older implementations.
GetMtime returns monotonic time that can be used to compare values with ktime_get_ns() BPF helper, e.g.
GetNextKey stores, in nextKey, the next key after the key of the map in fd.
GetNextKeyFromPointers stores, in nextKey, the next key after the key of the map in fd.
GetOpenMaps returns a slice of all open BPF maps.
GetPreAllocateMapFlags returns the map flags for map which use conditional pre-allocation.
GetProgFDByID returns the file descriptor for the program id.
GetProgInfoByFD gets the bpf program info from its file descriptor.
GetProgNextID takes a current program ID and returns the next program ID.
LocalMapName returns the name for a BPF map that is local to the specified ID.
LocalMapPath returns the path for a BPF map that is local to the specified ID.
LookupElement looks up for the map value stored in fd with the given key.
LookupElement looks up for the map value stored in fd with the given key.
MapFdFromID retrieves a file descriptor based on a map ID.
MapPath returns a path for a BPF map with a given name.
No description provided by the author
NewDumpStats returns a new stats structure for collecting dump statistics.
NewEndpointKey returns an EndpointKey based on the provided IP address.
NewMap creates a new Map instance - object representing a BPF map.
NewPerCPUHashMap creates a new Map type of "per CPU hash" - object representing a BPF map The number of cpus is used to have the size representation of a value when a lookup is made on this map types.
ObjClose closes the map's fd.
ObjGet reads the pathname and returns the map's fd read.
ObjPin stores the map's fd in pathname.
OpenMap opens the given bpf map and generates the Map info based in the information stored in the bpf map.
No description provided by the author
ReadFeatureProbes reads the bpf_features.h file at the specified path (as generated by bpf/run_probes.sh), and stores the results of the kernel feature probing.
No description provided by the author
No description provided by the author
TestDummyProg loads a minimal BPF program into the kernel and probes whether it succeeds in doing so.
UpdateElement updates the map in fd with the given value in the given key.
UpdateElementFromPointers updates the map in fd with the given value in the given key.
# Constants
Flags for BPF_MAP_UPDATE_ELEM.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BPF syscall attach types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Flags for BPF_MAP_CREATE.
No description provided by the author
Flags for BPF_PROG_QUERY.
Flags for accessing BPF object.
Flag for stack_map, store build_id+offset instead of pointer.
No description provided by the author
No description provided by the author
No description provided by the author
BPF syscall command constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BPF map type constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Delete indicates that the entry needs to be deleted.
Must be in sync with ENDPOINT_KEY_* in <bpf/lib/common.h>.
Must be in sync with ENDPOINT_KEY_* in <bpf/lib/common.h>.
No description provided by the author
Insert indicates that the entry needs to be created or updated.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
MapTypeMaximum is the maximum supported known map type.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
OK indicates that to further action is required and the entry is in sync.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
This enumeration must be in sync with enum bpf_prog_type in <linux/bpf.h>.
# Structs
DumpStats tracks statistics over the dump of a map.
EndpointKey represents the key value of the endpoints BPF map
Must be in sync with struct endpoint_key in <bpf/lib/common.h> +k8s:deepcopy-gen=true.
No description provided by the author
No description provided by the author
ProgInfo holds values from the upstream struct bpf_prog_info.
# Type aliases
DesiredAction is the action to be performed on the BPF map.
No description provided by the author
No description provided by the author
MapType is an enumeration for valid BPF map types.
No description provided by the author
ProgType is an enumeration for valid BPF program types.