bpf

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(msg *C.char)

Debugf is exported to C, so C code can write logs to the Golang logging package

func Errorf

func Errorf(msg *C.char)

Errorf is exported to C, so C code can write logs to the Golang logging package

func Infof

func Infof(msg *C.char)

Infof is exported to C, so C code can write logs to the Golang logging package

func Panicf

func Panicf(msg *C.char)

Panicf is exported to C, so C code can write logs to the Golang logging package

func Warningf

func Warningf(msg *C.char)

Warningf is exported to C, so C code can write logs to the Golang logging package

Types

type Handler

type Handler interface {
	LoadBpfSendXskMap(ifname string) (int, error)
	ConfigureBusyPoll(fd int, busyTimeout int, busyBudget int) error
	Cleanbpf(ifname string) error
}

Handler is the interface to the BPF package. The interface exists for testing purposes, allowing unit tests to run without making actual BPF calls.

func NewFakeHandler

func NewFakeHandler() Handler

NewFakeHandler returns a fake implementation of the Handler interface.

func NewHandler

func NewHandler() Handler

NewHandler returns an implementation of the Handler interface.

Jump to

Keyboard shortcuts

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