├── .gitignore ├── LICENSE ├── README.md ├── bpf ├── Makefile ├── README.md ├── bpf-maps │ ├── README.md │ └── examples-in-kernel │ │ ├── Makefile_addmyown │ │ ├── README.md │ │ ├── xdp_ip_tracker_common.h │ │ ├── xdp_ip_tracker_kern.c │ │ └── xdp_ip_tracker_user.c ├── bpf_trace_printk_definition.pdf └── perf-sys.h ├── bpftrace └── README.md ├── btf ├── README.md └── btf-xdp-cnt.c ├── bumblebee └── tcp_kprobe.c ├── libbpf ├── README.md └── libbpfgo-example │ ├── const-x64.go │ ├── hellokprobe.c │ ├── hellokprobe.go │ └── hellokprobe.h ├── tc ├── README.md ├── debug-tc-xdp-drop-tcp.c ├── headers │ ├── bpf_endian.h │ └── bpf_helpers.h ├── tc-xdp-drop-tcp.c └── tc-xdp-statistics.c └── xdp ├── README.md └── xdp-drop-world.c /.gitignore: -------------------------------------------------------------------------------- 1 | log 2 | .vscode 3 | *.o 4 | test -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/README.md -------------------------------------------------------------------------------- /bpf/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/Makefile -------------------------------------------------------------------------------- /bpf/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/README.md -------------------------------------------------------------------------------- /bpf/bpf-maps/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/bpf-maps/README.md -------------------------------------------------------------------------------- /bpf/bpf-maps/examples-in-kernel/Makefile_addmyown: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/bpf-maps/examples-in-kernel/Makefile_addmyown -------------------------------------------------------------------------------- /bpf/bpf-maps/examples-in-kernel/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/bpf-maps/examples-in-kernel/README.md -------------------------------------------------------------------------------- /bpf/bpf-maps/examples-in-kernel/xdp_ip_tracker_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/bpf-maps/examples-in-kernel/xdp_ip_tracker_common.h -------------------------------------------------------------------------------- /bpf/bpf-maps/examples-in-kernel/xdp_ip_tracker_kern.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/bpf-maps/examples-in-kernel/xdp_ip_tracker_kern.c -------------------------------------------------------------------------------- /bpf/bpf-maps/examples-in-kernel/xdp_ip_tracker_user.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/bpf-maps/examples-in-kernel/xdp_ip_tracker_user.c -------------------------------------------------------------------------------- /bpf/bpf_trace_printk_definition.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/bpf_trace_printk_definition.pdf -------------------------------------------------------------------------------- /bpf/perf-sys.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpf/perf-sys.h -------------------------------------------------------------------------------- /bpftrace/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bpftrace/README.md -------------------------------------------------------------------------------- /btf/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/btf/README.md -------------------------------------------------------------------------------- /btf/btf-xdp-cnt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/btf/btf-xdp-cnt.c -------------------------------------------------------------------------------- /bumblebee/tcp_kprobe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/bumblebee/tcp_kprobe.c -------------------------------------------------------------------------------- /libbpf/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/libbpf/README.md -------------------------------------------------------------------------------- /libbpf/libbpfgo-example/const-x64.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/libbpf/libbpfgo-example/const-x64.go -------------------------------------------------------------------------------- /libbpf/libbpfgo-example/hellokprobe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/libbpf/libbpfgo-example/hellokprobe.c -------------------------------------------------------------------------------- /libbpf/libbpfgo-example/hellokprobe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/libbpf/libbpfgo-example/hellokprobe.go -------------------------------------------------------------------------------- /libbpf/libbpfgo-example/hellokprobe.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/libbpf/libbpfgo-example/hellokprobe.h -------------------------------------------------------------------------------- /tc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/tc/README.md -------------------------------------------------------------------------------- /tc/debug-tc-xdp-drop-tcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/tc/debug-tc-xdp-drop-tcp.c -------------------------------------------------------------------------------- /tc/headers/bpf_endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/tc/headers/bpf_endian.h -------------------------------------------------------------------------------- /tc/headers/bpf_helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/tc/headers/bpf_helpers.h -------------------------------------------------------------------------------- /tc/tc-xdp-drop-tcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/tc/tc-xdp-drop-tcp.c -------------------------------------------------------------------------------- /tc/tc-xdp-statistics.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/tc/tc-xdp-statistics.c -------------------------------------------------------------------------------- /xdp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/xdp/README.md -------------------------------------------------------------------------------- /xdp/xdp-drop-world.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevermosby/linux-bpf-learning/HEAD/xdp/xdp-drop-world.c --------------------------------------------------------------------------------