bpfiterns

package
v0.26.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: 14 Imported by: 0

Documentation

Overview

Package bpfiterns reads a ebpf iterator in a different namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(iter *link.Iter) ([]byte, error)

Read reads the iterator in the host pid namespace. It will test if the current pid namespace is the host pid namespace.

func ReadOnCurrentPidNs

func ReadOnCurrentPidNs(iter *link.Iter) ([]byte, error)

ReadOnCurrentPidNs reads the iterator in the current pid namespace.

func ReadOnHostPidNs

func ReadOnHostPidNs(iter *link.Iter) ([]byte, error)

ReadOnHostPidNs reads the iterator in the host pid namespace. It does so by pinning the iterator in a temporary directory in the host bpffs, and then creating a systemd service that will read the iterator and write it to a temporary pipe. The pipe is then read and returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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