參考書籍
開發環境
Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-150-generic x86_64)
1.1 下載內核源碼
cd /usr/src/
sudo git clone -b v5.4 https://github.com/torvalds/linux.git
1.2 下載書中代碼
git clone https://github.com/bpftools/linux-observability-with-bpf
1.3 編譯hello_world
cd linux-observability-with-bpf/code/chapter-2/hello_world