https://github.com/netdata/ebpf-co-re
CO-RE code for the Netdata eBPF plugin.
https://github.com/netdata/ebpf-co-re
Last synced: 3 months ago
JSON representation
CO-RE code for the Netdata eBPF plugin.
- Host: GitHub
- URL: https://github.com/netdata/ebpf-co-re
- Owner: netdata
- Created: 2022-02-23T13:15:10.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T17:41:38.000Z (about 1 year ago)
- Last Synced: 2025-04-01T16:07:49.204Z (10 months ago)
- Language: C
- Size: 1.31 MB
- Stars: 13
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Linux Kernel eBPF CO-RE
## Directory structure
The respository has the following directory structure:
- `artifacts`: directory that will have the eBPF programs when the compilation
process ends.
- `includes`: headers used to compile `eBPF.plugin`.
- `kernel-collector`: this is a submodule'd fork of
[netdata/libbpf](https://github.com/netdata/kernel-collector).
- `libbpf`: this is a submodule'd fork of
[netdata/libbpf](https://github.com/netdata/libbpf) which is itself a fork of
the official `libbpf` package, the user-space side of eBPF system calls.
## Requirements
#### Packages
To compile the eBPF CO-RE, it will be necessary to have the following
packages:
- libelf headers
- LLVM/Clang; this is because GCC prior to 10.0 cannot compile eBPF code.
- `bpftool`: used to generate source codes.
#### Initializing Submodules
`libbpf` directory is included as a git submodule and it is necessary to fetch contents with the git command below:
```bash
git submodule update --init --recursive