Documentation ¶
Overview ¶
package common contains common functions and types used by all Retina plugins.
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
Constants ¶
View Source
const ( // FilterMapPath is the path to the BPF filter map. FilterMapPath = "/sys/fs/bpf" // FilterMapName is the name of the BPF filter map FilterMapName = "retina_filter_map" )
Variables ¶
This section is empty.
Functions ¶
func NewPerfReader ¶
NewPerfReader creates a new perf reader with a buffer size that is a power of 2. It starts with the maximum buffer size and tries with smaller buffer sizes if it fails with ENOMEM. Returns an error if it fails to create a perf reader or encounters any other error. Not enforced, but max and min should be a power of 2. The allocated size will be a multiple of pagesize determined at runtime.
func ProtocolToFlow ¶
Interface for IG event handlers. Maps to cilum Flow.
Types ¶
Click to show internal directories.
Click to hide internal directories.