Difference between revisions of "EBPF"
Line 14: | Line 14: | ||
bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h |
bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h |
||
+ | |||
+ | clang -O2 -g -target bpf -c trace_file_delete.c -o trace_file_delete.o |
||
+ | |||
{{Draft}} |
{{Draft}} |
Revision as of 05:56, 27 June 2025
https://www.srodi.com/posts/how-to-write-and-run-an-ebpf-program-on-linux/
https://www.wwt.com/blog/ebpf-is-the-bees-knees-for-enterprise-environments
https://medium.com/@megawan/writing-compiling-and-loading-ebpf-program-7b0efa014142
Might be needed:
sudo ln -s /usr/include/x86_64-linux-gnu/asm /usr/include/asm
sudo apt install libbpf-dev
sudo apt install bpftool
bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h
clang -O2 -g -target bpf -c trace_file_delete.c -o trace_file_delete.o
This is a draft article and so will not be published on A Voice for Men or appear in random article selections. Wiki4Men is looking for trustworthy editors that can turn draft articles in to featured articles. Information on how to apply is on the Main Page.
Technical articles in this category are applicable to Linux. Debian GNU/Linux is used in examples. Much of the information is also applicable to other Linux distributions and Unix flavours.