代码拉取完成,页面将自动刷新
coolbpf's target is to build a platform for libbpf compile collection,
which is for creating efficient kernel tracing and manipulation
programs, is to wrapper main functions of libbpf for user development.
coolbpf's main function are:
1) Service for local compile, and some wraps for BPF function call.
2) Service for remote compile, it receives xx.bpf.c, and return bpf.so
to your local APP to loading. The user can focus on their main functions
and don't
care compile environment.
3) High kernel version backport to low version with kernel module, such
as 3.10 BPF support, and perf buffer replace with new feature of ring
buffer.
4) BTF auto generate.
5)Variety kernel version testing for new BPF functions and tools.
6)Support for many languags, python/go/c/rust.
Compiling libcoolbpf requires installing the following dependent libraries/tools:
Compiling the eBPF tool requires additional installation of the following dependent libraries/tools:
Installation: Run ./install.sh
in the coolbpf root directory.
Uninstall: Run ./uninstall.sh
in the coolbpf root directory.
In the tools/examples/syscall directory, we provide examples of using libcoolbpf to develop eBPF programs. The process of compiling the syscall eBPF tool is as follows:
./install.sh
in the coolbpf root directory to install libcoolbpfmkdir -p build && cd build && cmake -DBUILD_EXAMPLE=on .. && make
in the coolbpf root directoryThe location of the final generated syscall executable program is: build/tools/examples/syscall/syscall
.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。