A thorough introduction to eBPF
A thorough introduction to eBPF
Posted Dec 13, 2017 16:16 UTC (Wed) by bfields (subscriber, #19510)Parent article: A thorough introduction to eBPF
"However, all of the sample code suffers from one major drawback: you need to compile your eBPF program from within the kernel source tree. Luckily, the BCC project was created to solve this problem. It includes a complete toolchain for writing eBPF programs and loading them without linking against the kernel source tree."
Is this true? Last I tried to use bcc on a test machine, I got something like:
$ /usr/share/bcc/tools/stackcount ...
chdir(/lib/modules/4.15.0-rc1-29619/build): No such file or directory
Failed to compile BPF module
until I'd copied my build tree to my test machine and pointed that symlink at it.