# README
eBPFutil
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