Skip to content

retrivies basic information of the active BPF programs

License

Notifications You must be signed in to change notification settings

rogercoll/ebpfutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eBPFutil

Go Reference

Retrieves basic information of the pinned BPF programs and maps running in the host. This package cannot be used to load, attach, link or unload BPF programs, it can only be used to gather BPF stats.

Package Features

BPF Programs

stats.BPFPrograms() -> Returns an array of all the available BPF programs loaded in the system as a BPFProgram structure which contains the ID, FD and BPFProgInfo of the corresponding program. See examples/programs/main.go

BPF Maps

stats.BPFMaps() -> Returns an array of all the available BPF maps in the system as a BPFMap structure which contains the ID, FD and BPFMapInfo of the corresponding map. See examples/maps/main.go

For additional exported functionalities you check the public documentation.

Usage

Import it into your Go program and use any of the exported functions:

go get github.com/rogercoll/ebpfutil

About

retrivies basic information of the active BPF programs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages