# ebpf-helloworld **Repository Path**: golangexamples/ebpf-helloworld ## Basic Information - **Project Name**: ebpf-helloworld - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-02 - **Last Updated**: 2025-04-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ebpf-helloworld ## 依赖检查 ```shell clang --version llvm-strip --version ``` ## 安装依赖 ``` sudo apt update sudo apt install llvm -y sudo apt install clang -y sudo apt-get install libbpf-dev sudo apt-get install -y gcc-multilib ``` ### 安装Linux kernel headers ```shell sudo apt update sudo apt install linux-headers-$(uname -r) sudo apt install linux-headers-5.4.0-200 ``` 如果找不到安装包,则指定安装包 ```shell sudo apt update sudo apt-cache search linux-headers | grep 5.4.0- sudo apt install linux-headers-5.4.0-200 ``` ## 查看XDP程序 ``` xdp-loader status ``` ## 参考文档 https://ebpf-go.dev/guides/getting-started