Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/)