Closed gongluck closed 1 year ago
Same problem
The problems is that BPF_KPROBE_SYSCALL
is not defined as the compiler can't find this definition. Most probably the libbpf-dev
version is old and lack the new headers added last year that contain this define.
If you use a Debian
based distribution like Ubuntu you can either install the experimental
or unstable
/ sid
version with
sudo apt install -t sid libbpf-dev
or just build & install libbpf from sources.
Note that this repo has the libbpf
repo as a submodule so you can simple git submodule update --init
to bring the sources.
I encountered a problem in the example in Chapter 5, and an error was reported when executing the make command:
Can you help me please, thanks!