signalmap

package
v1.16.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Overview

Package signalmap represents the perf event map used to signal potential congestion to Cilium agent. It is primarily managed from the datapath; Cilium side is used to create the map only. +groupName=maps

Index

Constants

View Source
const (
	// MapName is the BPF map name.
	MapName = "cilium_signals"
)

Variables

View Source
var Cell = cell.Module(
	"signal-map",
	"eBPF map signal passes wakeup events from Cilium datapath",

	cell.Provide(newMap),
)

Cell initializes and manages the config map.

Functions

This section is empty.

Types

type Key

type Key struct {
	// contains filtered or unexported fields
}

Key is the index into the prog array map.

func (*Key) New

func (k *Key) New() bpf.MapKey

func (*Key) String

func (k *Key) String() string

String converts the key into a human readable string format.

type Map

type Map interface {
	NewReader() (PerfReader, error)
	MapName() string
}

type PerfReader

type PerfReader interface {
	Read() (perf.Record, error)
	Pause() error
	Resume() error
	Close() error
}

PerfReader is an interface for reading from perf records. Implementations need to be safe to call from multiple goroutines.

type Value

type Value struct {
	// contains filtered or unexported fields
}

Value is the program ID in the prog array map.

func (*Value) New

func (v *Value) New() bpf.MapValue

func (*Value) String

func (v *Value) String() string

String converts the value into a human readable string format.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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