# bpf-learn **Repository Path**: zhaojh329/bpf-learn ## Basic Information - **Project Name**: bpf-learn - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-19 - **Last Updated**: 2025-08-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bpf start ## Install latest libbpf ```bash git clone https://github.com/libbpf/libbpf.git cd src make sudo LIBDIR=/usr/lib make install ``` ```bash sudo mount -t bpf /sys/fs/bpf/ /sys/fs/bpf/ ``` ```bash clang -target bpf -D __TARGET_ARCH_$(uname -m) -I/usr/include/$(uname -m)-linux-gnu -O2 -g -c kern.c -o kern.o ``` ```bash gcc user.c -o user -lbpf ```