package fdtrace
import "github.com/cilium/ebpf/internal/testutils/fdtrace"
Index ¶
- func ForgetFD(raw int)
- func LeakFD(raw int)
- func TestMain(m testingM)
- func TraceFD(raw int, skip int)
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 ¶
TraceFD associates raw with the current execution stack.
skip controls how many entries of the stack the function should skip.
Source Files ¶
- Version
- v0.17.3
- Published
- Feb 11, 2025
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 2 hours ago –
Tools for package owners.