/learn-by-example

Learn something interesting by examples.

Primary LanguageCMIT LicenseMIT

learn-by-example

Learn something interesting by examples.


  1. nsenter in Go
  2. nfnetlink(iptables-nfqueue) in Go
  3. nfqueue(another example of iptables-nfqueue) in Go

eBPF examples

  1. demo for 「eBPF 技术实践:高性能 ACL」
  2. 为 eBPF 程序注入黑魔法
  3. bpf2bpf functions call example
  4. bpf_tail_call() example
  5. eBPF global variables
  6. XDP metadata 实战指南
  7. XDP ping
  8. ping latency injection with XDP metadata
  9. eBPF timer
  10. eBPF iterator
  11. binary search in eBPF
  12. fentry/fexit on XDP program
  13. fentry/fexit on tc-bpf program
  14. fentry/fexit on tailcall target program (FAILED)
  15. fentry/fexit on bpf2bpf target program
  16. fentry/fexit on freplace program
  17. fentry/fexit on freplace program (XDP)
  18. fentry/fexit on kprobe program
  19. fentry/fexit on tracepoint program
  20. tracepoint of netlink_extack
  21. tailcall shared on multi-processes
  22. tailcall stack overflow?
  23. XDP supports traceroute
  24. tailcall in bpf2bpf
  25. fexit on RPS/XPS
  26. fexit on ipv4 sysctl