mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-11-26 05:43:15 +08:00
docs: rewrite four advanced eBPF tutorials
This commit is contained in:
@@ -19,6 +19,7 @@ Introduce information at the point where the reader needs it. Compilation follow
|
||||
|
||||
## Tell one useful story
|
||||
|
||||
- Position the lesson at the narrowest useful capability that the executable really provides. Keep the title, opening, CLI, normal execution path, output, and test focused on that same capability. For example, a tool that learns one domain's A record and checks one TCP port is a minimal DNS-derived IP allowlist rather than a general DNS-aware firewall.
|
||||
- Open with the concrete question the tool answers. A short factual setup is often enough; avoid invented stories.
|
||||
- Near the first mention of eBPF, use one natural sentence to say that it runs verified programs at kernel hooks and can send selected state to user space.
|
||||
- Introduce the relevant kernel subsystem and new feature when the running example needs them. State when the feature entered Linux and what it enabled.
|
||||
@@ -33,6 +34,8 @@ Introduce information at the point where the reader needs it. Compilation follow
|
||||
- Keep each paragraph focused on one job. Connect facts through cause, sequence, or contrast instead of listing them like a specification.
|
||||
- Write Chinese naturally from the same facts instead of translating English sentence by sentence. Use restrained punctuation and spaces between Chinese text and Latin letters or numbers.
|
||||
- Keep technical names, code identifiers, commands, numbers, output, versions, and references exact.
|
||||
- Match operational terms to behavior. Call a tool a profiler when it collects a profile such as sampled call paths or a distribution, an index when it maintains a searchable or ordered index, and a policy tool when it actually enforces a decision.
|
||||
- For a stateful policy, teach the complete trust chain: which event creates candidate state, which fields correlate later events, which checks admit state, how time or deletion retires it, and which hook makes the final decision. Give poisoning, stale-state, and bypass resistance the space required to explain the mechanism.
|
||||
|
||||
Use this Chinese paragraph only as a voice reference for connected rhythm, restrained symbols, and technical density:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user