Some time ago, I read about a technology called eBPF, which allows the creation of programs that interact with the Linux kernel without the need to...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, thanks for the article it is very insightful.
Somehow I could not be able to compile bpf code.
It gives the following error:
I installed libbpf-dev, linux-headers-generic but still could not make it work.
Any suggestion?
Hi @mstryoda, thank you for reading my article and sharing your issue. It seems like your system might not be able to find the required header files. Have you tried installing the kernel headers for your specific version? This often solves the issue!
Hi @douglasmakey I tried it but unfortunately not worked for OrbStack VirtualMachine.
I switched to use Lima VM on macOS M1, somehow still not worked. But when I replace
uapi/linux/ptrace.haslinux/ptrace.hit skipped that error.Anyway, I am getting error for the following simple bpf program.
clang -D __TARGET_ARCH_ARM64 -I /usr/include/aarch64-linux-gnu -O2 -Wall --target=bpf -c bpf.c -o bpf.oError output:
Sorry @mstryoda, are you still having the same issue ?