{"id":15190172,"url":"https://github.com/rogercoll/ebpfutil","last_synced_at":"2026-03-05T13:02:30.217Z","repository":{"id":57709695,"uuid":"509792982","full_name":"rogercoll/ebpfutil","owner":"rogercoll","description":"retrivies basic information of the active BPF programs","archived":false,"fork":false,"pushed_at":"2022-09-24T10:37:29.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-23T16:46:02.390Z","etag":null,"topics":["ebpf","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rogercoll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-02T15:35:01.000Z","updated_at":"2022-07-02T17:11:52.000Z","dependencies_parsed_at":"2022-09-26T21:21:20.208Z","dependency_job_id":null,"html_url":"https://github.com/rogercoll/ebpfutil","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Febpfutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Febpfutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Febpfutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Febpfutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogercoll","download_url":"https://codeload.github.com/rogercoll/ebpfutil/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241039326,"owners_count":19898669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebpf","go"],"created_at":"2024-09-27T20:05:35.919Z","updated_at":"2026-03-05T13:02:25.189Z","avatar_url":"https://github.com/rogercoll.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eBPFutil\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/rogercoll/ebpfutil.svg)](https://pkg.go.dev/github.com/rogercoll/ebpfutil)\n\nRetrieves 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.\n\n## Package Features\n\n### BPF Programs\n\n`stats.BPFPrograms()` -\u003e Returns an array of all the available BPF programs loaded in\nthe system as a [BPFProgram structure](https://github.com/rogercoll/ebpfutil/blob/main/stats/programs.go#L11) which contains the ID, FD and\n[BPFProgInfo](https://github.com/rogercoll/ebpfutil/blob/8b5366a7bf3d0c9b142849a4b6e2e62d23d243b1/program.go#L10) of the corresponding program. See [examples/programs/main.go](./examples/programs/main.go)\n\n### BPF Maps\n\n`stats.BPFMaps()` -\u003e Returns an array of all the available BPF maps in\nthe system as a [BPFMap structure](https://github.com/rogercoll/ebpfutil/blob/main/stats/maps.go#L11) which contains the ID, FD and\n[BPFMapInfo](https://github.com/rogercoll/ebpfutil/blob/8b5366a7bf3d0c9b142849a4b6e2e62d23d243b1/map.go#L6) of the corresponding map. See [examples/maps/main.go](./examples/maps/main.go)\n\n\nFor additional exported functionalities you check the [public documentation](https://pkg.go.dev/github.com/rogercoll/ebpfutil).\n\n## Usage\n\nImport it into your Go program and use any of the exported functions:\n\n```bash\ngo get github.com/rogercoll/ebpfutil\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogercoll%2Febpfutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogercoll%2Febpfutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogercoll%2Febpfutil/lists"}