Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadBpfObjects ¶
func LoadBpfObjects(obj interface{}, opts *ebpf.CollectionOptions) error
loadBpfObjects loads bpf and converts it into a struct.
The following types are suitable as obj argument:
*bpfObjects *bpfPrograms *bpfMaps
See ebpf.CollectionSpec.LoadAndAssign documentation for details.
Types ¶
type BpfObjects ¶
type BpfObjects struct {
// contains filtered or unexported fields
}
bpfObjects contains all objects after they have been loaded into the kernel.
It can be passed to loadBpfObjects or ebpf.CollectionSpec.LoadAndAssign.
func (*BpfObjects) Close ¶
func (o *BpfObjects) Close() error
Click to show internal directories.
Click to hide internal directories.