stats

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BPFMap

type BPFMap struct {
	// ID of the BPF program
	ID uint32
	// File Descriptor of the BPF program
	FD uint32
	// Available information: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/bpf.h#L5840
	Info *ebpfutil.BPFMapInfo
}

func BPFMaps

func BPFMaps() ([]BPFMap, error)

BPFMaps returns an array of the attached BPF maps and its avaialble information

type BPFProgram

type BPFProgram struct {
	// ID of the BPF program
	ID uint32
	// File Descriptor of the BPF program
	FD uint32
	// Available information: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/bpf.h#L5840
	Info *ebpfutil.BPFProgInfo
}

func BPFPrograms

func BPFPrograms() ([]BPFProgram, error)

BPFPrograms returns an array of the attached BPF programs and its avaialble information

Jump to

Keyboard shortcuts

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