Documentation
¶
Index ¶
- Constants
- func CompileEbpf(ctx context.Context, args ...string) error
- func GenerateVmlinuxH(ctx context.Context, outputDir string) error
- func PrepareVmlinuxH(ctx context.Context) (string, error)
- func VmlinuxHeaderDir() string
- func VmlinuxHeaderPath() string
- func WriteFile(ctx context.Context, destFile, text string) error
Constants ¶
View Source
const ( // DefaultVmlinuxHeaderDir is the default runtime include directory used by plugins. DefaultVmlinuxHeaderDir = "/tmp/retina/include" // VmlinuxHeaderDirEnv is an optional env var to override the runtime include directory. VmlinuxHeaderDirEnv = "RETINA_VMLINUX_HEADER_DIR" // VmlinuxHeaderFileName is the generated runtime BTF header filename. VmlinuxHeaderFileName = "vmlinux.h" // VmlinuxKernelReleaseFileName stores the kernel release used to generate vmlinux.h. VmlinuxKernelReleaseFileName = "vmlinux.kernel.release" )
Variables ¶
This section is empty.
Functions ¶
func GenerateVmlinuxH ¶ added in v1.2.0
func PrepareVmlinuxH ¶ added in v1.2.0
PrepareVmlinuxH ensures runtime vmlinux.h exists and returns the include dir.
func VmlinuxHeaderDir ¶ added in v1.2.0
func VmlinuxHeaderDir() string
VmlinuxHeaderDir returns the runtime directory where vmlinux.h is expected.
func VmlinuxHeaderPath ¶ added in v1.2.0
func VmlinuxHeaderPath() string
VmlinuxHeaderPath returns the full runtime path to vmlinux.h.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.