Skip to content
项目

关于

通过构建环境和示例,让 eBPF 编程更加简单

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Practical BPF examples

This git repository contains a diverse set of practical BPF examples that solve (or demonstrate) a specific use-case using BPF.

It is meant to ease doing rapid prototyping and development, writing C-code BPF programs using libbpf. The goal is to make it easier for developers to get started coding.

Many developers struggle to get a working BPF build environment. The repo enviroment makes it easy to build/compile BPF programs by doing the necessary libbpf setup transparently and detect missing compile dependencies (via the configure script). It is a declared goal to make BPF programming more consumable by detecting and reporting issues (when possible).

Missing clang errno support

If you get the following output from configure:

clang errno support: no - some examples will fail and won't be compiled from the top-level Makefile. See README.md.

This means that you are missing a header file that is included in a 32-bit architecture header file. Some of the examples in the repository will compile fine without this header file. The build system will automatically exclude the examples that require the header from the build if the header is missing. Manually compiling the utilities excluded will fail in this case.

To fix the error:

  • On Fedora install:
    • dnf install glibc-devel.i686
  • On Debian install:"
    • apt install libc6-dev-i386

探索相关项目

加载中…