bpf2go

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bpf2go generate c to go struct

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKmeshCgroupSockWorkload

func LoadKmeshCgroupSockWorkload() (*ebpf.CollectionSpec, error)

LoadKmeshCgroupSockWorkload returns the embedded CollectionSpec for KmeshCgroupSockWorkload.

func LoadKmeshCgroupSockWorkloadObjects

func LoadKmeshCgroupSockWorkloadObjects(obj interface{}, opts *ebpf.CollectionOptions) error

LoadKmeshCgroupSockWorkloadObjects loads KmeshCgroupSockWorkload and converts it into a struct.

The following types are suitable as obj argument:

*KmeshCgroupSockWorkloadObjects
*KmeshCgroupSockWorkloadPrograms
*KmeshCgroupSockWorkloadMaps

See ebpf.CollectionSpec.LoadAndAssign documentation for details.

Types

type KmeshCgroupSockWorkloadMapSpecs

type KmeshCgroupSockWorkloadMapSpecs struct {
	KmeshBackend  *ebpf.MapSpec `ebpf:"kmesh_backend"`
	KmeshEndpoint *ebpf.MapSpec `ebpf:"kmesh_endpoint"`
	KmeshFrontend *ebpf.MapSpec `ebpf:"kmesh_frontend"`
	KmeshService  *ebpf.MapSpec `ebpf:"kmesh_service"`
}

KmeshCgroupSockWorkloadMapSpecs contains maps before they are loaded into the kernel.

It can be passed ebpf.CollectionSpec.Assign.

type KmeshCgroupSockWorkloadMaps

type KmeshCgroupSockWorkloadMaps struct {
	KmeshBackend  *ebpf.Map `ebpf:"kmesh_backend"`
	KmeshEndpoint *ebpf.Map `ebpf:"kmesh_endpoint"`
	KmeshFrontend *ebpf.Map `ebpf:"kmesh_frontend"`
	KmeshService  *ebpf.Map `ebpf:"kmesh_service"`
}

KmeshCgroupSockWorkloadMaps contains all maps after they have been loaded into the kernel.

It can be passed to LoadKmeshCgroupSockWorkloadObjects or ebpf.CollectionSpec.LoadAndAssign.

func (*KmeshCgroupSockWorkloadMaps) Close

type KmeshCgroupSockWorkloadObjects

type KmeshCgroupSockWorkloadObjects struct {
	KmeshCgroupSockWorkloadPrograms
	KmeshCgroupSockWorkloadMaps
}

KmeshCgroupSockWorkloadObjects contains all objects after they have been loaded into the kernel.

It can be passed to LoadKmeshCgroupSockWorkloadObjects or ebpf.CollectionSpec.LoadAndAssign.

func (*KmeshCgroupSockWorkloadObjects) Close

type KmeshCgroupSockWorkloadProgramSpecs

type KmeshCgroupSockWorkloadProgramSpecs struct {
	CgroupConnect4Prog *ebpf.ProgramSpec `ebpf:"cgroup_connect4_prog"`
}

KmeshCgroupSockWorkloadSpecs contains programs before they are loaded into the kernel.

It can be passed ebpf.CollectionSpec.Assign.

type KmeshCgroupSockWorkloadPrograms

type KmeshCgroupSockWorkloadPrograms struct {
	CgroupConnect4Prog *ebpf.Program `ebpf:"cgroup_connect4_prog"`
}

KmeshCgroupSockWorkloadPrograms contains all programs after they have been loaded into the kernel.

It can be passed to LoadKmeshCgroupSockWorkloadObjects or ebpf.CollectionSpec.LoadAndAssign.

func (*KmeshCgroupSockWorkloadPrograms) Close

type KmeshCgroupSockWorkloadSpecs

type KmeshCgroupSockWorkloadSpecs struct {
	KmeshCgroupSockWorkloadProgramSpecs
	KmeshCgroupSockWorkloadMapSpecs
}

KmeshCgroupSockWorkloadSpecs contains maps and programs before they are loaded into the kernel.

It can be passed ebpf.CollectionSpec.Assign.

Jump to

Keyboard shortcuts

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