Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asphaltt/learn-by-example
Learn something interesting by examples.
https://github.com/asphaltt/learn-by-example
bpf2bpf ebpf fentry fexit freplace go iptables-nfqueue kprobe nfnetlink nsenter tc-bpf tracepoint xdp xdp-acl
Last synced: 4 days ago
JSON representation
Learn something interesting by examples.
- Host: GitHub
- URL: https://github.com/asphaltt/learn-by-example
- Owner: Asphaltt
- License: mit
- Created: 2021-11-10T14:35:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T15:57:27.000Z (about 1 month ago)
- Last Synced: 2025-01-10T12:53:26.604Z (11 days ago)
- Topics: bpf2bpf, ebpf, fentry, fexit, freplace, go, iptables-nfqueue, kprobe, nfnetlink, nsenter, tc-bpf, tracepoint, xdp, xdp-acl
- Language: C
- Homepage:
- Size: 23 MB
- Stars: 57
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# learn-by-example
Learn something interesting by examples.
---
1. [`nsenter` in Go](./nsenter/)
2. [`nfnetlink`(`iptables-nfqueue`) in Go](./nfnetlink/)
3. [`nfqueue`(another example of `iptables-nfqueue`) in Go](./nfqueue/)## eBPF examples
1. [`demo for 「eBPF 技术实践:高性能 ACL」`](./ebpf/acl/)
2. [`为 eBPF 程序注入黑魔法`](./ebpf/inject/)
3. [`bpf2bpf functions call example`](./ebpf/bpf2bpf/)
4. [`bpf_tail_call() example`](./ebpf/tailcall/)
5. [`eBPF global variables`](./ebpf/global-variable/)
6. [`XDP metadata 实战指南`](./ebpf/xdpmetadata/)
7. [`XDP ping`](./ebpf/xdpping/)
8. [`ping latency injection with XDP metadata`](./ebpf/metadata_xdp2afxdp/)
9. [`eBPF timer`](./ebpf/timer/)
10. [`eBPF iterator`](./ebpf/iter/)
11. [`binary search in eBPF`](./ebpf/bsearch/)
12. [`fentry/fexit on XDP program`](./ebpf/fentry_fexit-xdp/)
13. [`fentry/fexit on tc-bpf program`](./ebpf/fentry_fexit-tc)
14. [`fentry/fexit on tailcall target program` (FAILED)](./ebpf/fentry_fexit-tailcall/)
15. [`fentry/fexit on bpf2bpf target program`](./ebpf/fentry_fexit-bpf2bpf/)
16. [`fentry/fexit on freplace program`](./ebpf/fentry_fexit-freplace/)
17. [`fentry/fexit on freplace program (XDP)`](./ebpf/fentry_fexit-freplace-xdp/)
18. [`fentry/fexit on kprobe program`](./ebpf/fentry_fexit-kprobe/)
19. [`fentry/fexit on tracepoint program`](./ebpf/fentry_fexit-tracepoint/)
20. [`tracepoint of netlink_extack`](./ebpf/tracepoint/)
21. [`tailcall shared on multi-processes`](./ebpf/tailcall-shared/)
22. [`tailcall stack overflow?`](./ebpf/tailcall-stack-overflow/)
23. [`XDP supports traceroute`](./ebpf/xdp-traceroute/)
24. [`tailcall in bpf2bpf`](./ebpf/tailcall-in-bpf2bpf/)
25. [`fexit on RPS/XPS`](./ebpf/fexit_rpsxps/)
26. [`fexit on ipv4 sysctl`](./ebpf/fexit_ipv4_sysctl/)