Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfx/hello-bpf-core
An example app for BPF CO-RE and CI settings with GitHub Actions
https://github.com/gfx/hello-bpf-core
bpf bpf-core ebpf example
Last synced: 8 days ago
JSON representation
An example app for BPF CO-RE and CI settings with GitHub Actions
- Host: GitHub
- URL: https://github.com/gfx/hello-bpf-core
- Owner: gfx
- Created: 2022-04-05T06:01:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T06:45:49.000Z (about 2 years ago)
- Last Synced: 2024-10-11T21:09:54.569Z (25 days ago)
- Topics: bpf, bpf-core, ebpf, example
- Language: C
- Homepage:
- Size: 21.5 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello, BPF CO-RE!
## Trouble Shooting
### `clang` cannot compile BPF source files
If you cannot build a BPF source file with the following messages:
```
build/vmlinux.h:4629:20: error: expected member name or ';' after declaration specifiers
struct cgroup_bpf bpf;
^
:284:13: note: expanded from here
#define bpf 1
```Then, your `clang` could be too old. I've confirmed clang-8 cannot build BPF source files but clang-10 can do.
## References
* https://www.sartura.hr/blog/simple-ebpf-core-application/
* repo: https://github.com/sartura/ebpf-hello-world
* [BPF Documentation - kernel.org](https://www.kernel.org/doc/html/latest/bpf/)
* [BPF CO-RE Reference Guide - nakryiko.com](https://nakryiko.com/posts/bpf-core-reference-guide/)