package fdtrace

import "github.com/cilium/ebpf/internal/testutils/fdtrace"

Index

Functions

func ForgetFD

func ForgetFD(raw int)

ForgetFD removes any existing association for raw.

func LeakFD

func LeakFD(raw int)

LeakFD indicates that raw was leaked.

Calling the function with a value that was not passed to TraceFD before is undefined.

func TestMain

func TestMain(m testingM)

TestMain runs m with fd tracing enabled.

The function calls os.Exit and does not return.

func TraceFD

func TraceFD(raw int, skip int)

TraceFD associates raw with the current execution stack.

skip controls how many entries of the stack the function should skip.

Source Files

fd_trace.go main.go

Version
v0.17.1
Published
Dec 20, 2024
Platform
linux/amd64
Imports
6 packages
Last checked
1 hour ago

Tools for package owners.